Hi Jean-Christophe,

> I'm just exploring my very first lines of picolisp code, and it is going to
> take some time to get something done... :)

Very good! :)


> The wiki html seems to be generated by _render, which is defined this way:
> 
> (de _render (C D)
> ...
> for the code for html headers is:
> 
> (case C
>     (("1" "2" "3" "4" "5" "6")  # Heading
>         (_render "h" C)
> ...
> with C being equal to the number that was used to define the header (wiki 
> syntax: n{Heading}).

Correct.


> So, my first idea would be, instead of adding complexity to the wiki syntax 
> to specify ID values, to use the value of the heading as the value of the ID 
> and output this:
> 
> <h2 id="My heading">My heading</h2>
> 
> That does not guarantee that we have unique ID values, which is a requirement
> in HTML,

Is there a reason not to use  <h2 name="..." ...> instead?

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to