From: Igor G. <i....@br...> - 2011-08-20 01:20:05
|
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 |
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 |
From: Alexandre L. <new...@al...> - 2011-08-20 14:15:16
|
Hi Igor, this might be close to what you are looking for: <http://git.constantvzw.org/?p=aa.core.git;a=blob;f=aacore/mdx_addsections.py;h=969e520a42b0018a2c4b74889fecc83a7dd7704a;hb=HEAD> -- Alex On 20/08/2011 03:19, Igor Galić wrote: > 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 |
From: Alexandre L. <new...@al...> - 2011-08-20 14:20:07
|
Hi Igor, [this][1] might be close to what you are looking for: -- Alex [1]: http://git.constantvzw.org/?p=aa.core.git;a=blob;f=aacore/mdx_addsections.py;h=969e520a42b0018a2c4b74889fecc83a7dd7704a;hb=HEAD On 20/08/2011 03:19, Igor Galić wrote: > 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 |
From: Waylan L. <wa...@gm...> - 2011-08-21 00:18:41
|
Interesting. Hope you don't mind, but I just added this to the list of third party extensions. http://www.freewisdom.org/projects/python-markdown/Available_Extensions On Sat, Aug 20, 2011 at 10:02 AM, Alexandre Leray <new...@al...> wrote: > Hi Igor, > > [this][1] might be close to what you are looking for: > > -- Alex > > [1]: > http://git.constantvzw.org/?p=aa.core.git;a=blob;f=aacore/mdx_addsections.py;h=969e520a42b0018a2c4b74889fecc83a7dd7704a;hb=HEAD > > On 20/08/2011 03:19, Igor Galić wrote: >> 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 > > > ------------------------------------------------------------------------------ > 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 |