From: Waylan L. <wa...@gm...> - 2013-03-05 00:37:42
|
Alex, There are already a couple extensions which do something similar listed on the wiki [1]. You might want to start there. Or perhaps those will fill your need. [1]: https://github.com/waylan/Python-Markdown/wiki/Third-Party-Extensions On Mon, Mar 4, 2013 at 3:51 PM, AL <new...@al...> wrote: > Hi, > > I'm thinking about writing an extension that would wrap content into > html5 section tags. It would split the content according to "8<" markers > (or similar), turning this: > > Some content > > 8< > > # Some Header > > Some more content > > 8< > > # Another Header > > etc. > > into: > > <p>Some content</p> > > <section> > <h1>Some Header</h1> > <p>Some more content</p> > </section> > > <section> > <h1>Another Header</h1> > <p>etc.</p> > </section> > > I'd like to be able to use the attr_list extension, and something like > the headerid one. I'm wondering what would be the best way to approach > this. Do you have any advices? > > Thanks, > > Alex > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss -- ---- \X/ /-\ `/ |_ /-\ |\| Waylan Limberg |