From: Gerry L. <gjl...@gm...> - 2011-03-02 14:35:46
|
Standard markdown will insert the <br /> if a line is terminated with a double space-CR sequence. In other words, "<space><space><CR>" at the end of a line. Don't know if that's useful or not. Otherwise, paragraphs are handled as a blockparser, you might look at writing an extension to replace the processing done in the ParagraphProcessor class. Regards- Gerry On Tue, Mar 01, 2011 at 03:50:36PM -0600, Brian Neal wrote: > Hi - > > First of all, thanks for your great work on this package. It is really useful. > > My users are easily confused and get tripped up by the way Markdown > does not insert a <br /> tag when it encounters a newline in a > paragraph-like construct. So I'm searching for a way to implement this > behavior, just like StackOverflow and GitHub Flavored Markdown do: > http://github.github.com/github-flavored-markdown/ > > Has this been done by anyone before? If not, what is the best way to > do this, as an extension? Any pointers on how to best do that? As a > preprocessor or tree extension? > > Or is there already a Python implementation of GitHub flavored Markdown? > > Thanks, > BN > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT data > generated by your applications, servers and devices whether physical, virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss > |