[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: Anchor publishing in emacs-wiki
From: |
Michael Olson |
Subject: |
[emacs-wiki-discuss] Re: Anchor publishing in emacs-wiki |
Date: |
Wed, 17 Aug 2005 13:58:37 -0500 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
Michael Olson <address@hidden> writes:
> Since anchor publishing in emacs-wiki currently causes invalid
> (X)HTML to be generated, I'm merging in a fix for that from Zak
> B. Elep's emacs-wiki branch, with a couple of minor changes.
>
> Anchors will now be inserted as follows:
>
> (insert "<a id=\"anchor-" anchor "\">")
>
> instead of:
>
> (insert "<a id=\"" anchor "\">")
Come to think of it ... I'll refine that algorithm a bit. If the
anchor consists of only numeric digits, "anchor-" will be pre-pended.
Otherwise, the anchor will be inserted as-is. That should be more
sane, I hope.
--
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: anime, Debian, XHTML, wiki, Emacs Lisp
/` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #pulug
|_] | \| |_| Jabber: mwolson_at_hcoop.net
pgpteWH_4_Hvw.pgp
Description: PGP signature