From: Waylan L. <wa...@gm...> - 2013-07-25 02:24:49
|
Jay, The TOC Extension already has a config setting (anchorlink) which defaults to off. According to the commit history, it has been there since the extension was first added to Markdown. If you just want ids automatically assigned to headers, I would suggest the HeaderId [1] Extension which does just that. In fact, the TOC extension imports the id assignment functionality from the HeaderId extension - but has no anchors. [1]: http://pythonhosted.org/Markdown/extensions/header_id.html ---- \X/ /-\ `/ |_ /-\ |\| Waylan Limberg On Wed, Jul 24, 2013 at 10:59 AM, Jay Luker <lb...@re...> wrote: > Hi all, > > I'm wanting to use the TOC extension to generate anchor links for > section headers to facilitate linking to sections of a document. (I'm > not actually using the TOC itself yet, but I might eventually). I find > the current behavior of wrapping the anchor tag around the header text > odd, and I'm kind of scratching my head at who would want that. What > is the use case for headers that link to themselves? > > Anyhow, I was going to propose maybe a new config option to control > this. Happy to submit a pull request. > > Thanks, > --jay > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss |