Re: [hakyll] Automatically linking to anchors in titles

31 views
Skip to first unread message

Eric Rasmussen

unread,
May 7, 2013, 12:24:36 PM5/7/13
to hak...@googlegroups.com
I think in general ReST is better at this sort of thing than markdown, but it'd likely be easiest to do either:

1) Create the reference link with the header. Example: #### [MyHeader](#this_will_link_to_header)
2) Look into the implicit header references extension in pandoc (http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html)

The pandoc link above is also useful for understanding how it handles markdown.



On Mon, May 6, 2013 at 6:19 AM, <mekeor...@googlemail.com> wrote:
(How) Can I make Hakyll make pandoc generate

> <h1 id="foobar"><a href="#foobar">foobar</a></h1>

instead of

> <h1 id="foobar">foobar</h1>

out of the markdown code

> # foobar

?

I mean, it's a bummer that the IDs are created but not linked to automatically. :)

--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages