From: Waylan L. <wa...@gm...> - 2011-08-20 02:33:48
|
Igor, The nature of the Markdown Syntax pretty much leaves raw html as your only option to _wrap_ sections of a document. However, if you want to add styling hooks to the various parts of the document (say individual paragraphs), you might want to check out the new attr_list extension [1], available in version 2.1.0.alpha [2]. [1]: https://github.com/waylan/Python-Markdown/blob/master/docs/extensions/attr_list.txt [2]: https://github.com/waylan/Python-Markdown/downloads 2011/8/19 Igor Galić <i....@br...>: > Hi folks, > > I'm working with a CMS which uses (python) Markdown as basis > and I'm a little unhappy with the styling option that it offers. > > We end up with a > > <div id="content"> > $mardowntext > </div> > > And that is quite difficult to style sensibly. > > Is there any sane way -- other than wrapping a section with divs > > <div class="section"> > # Header # {#header1} > Some text here > </div> > > to achieve such an effect? > I've been contemplating to add an extension for that purpose, > which creates such section and subsection class divs, but my > Python-fu is quite poor. > > Is anyone aware of such a thing already in existence? Or a > sensible alternative? Or is putting HTML content the only > sensible solution? > > Thank you for your feedback. > > So long, > i > -- > Igor Galić > > Tel: +43 (0) 664 886 22 883 > Mail: i....@br... > URL: http://brainsware.org/ > GPG: 571B 8B8A FC97 266D BDA3 EF6F 43AD 80A4 5779 3257 > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss > -- ---- \X/ /-\ `/ |_ /-\ |\| Waylan Limberg |