From: Waylan L. <way...@ic...> - 2018-12-27 00:16:14
|
Personally, I have no interest in Commonmark. However, we have built Python-Markdown in such a way that the entire parser is overridable via the Extension API <https://python-markdown.github.io/extensions/api/>. I’m not aware of any existing extensions which reimplement Commonmark, but it should certainly be possible. Waylan Limberg > On Dec 26, 2018, at 7:09 PM, Humberto Ayres Pereira <hum...@pa...> wrote: > > Sure. I get all that. > I was just looking to see if a plug-in would solve it. > > Thanks a lot! > > Sent from my iPhone > > On 27. Dec 2018, at 00:02, Waylan Limberg <way...@ic... <mailto:way...@ic...>> wrote: > >> Commonmark and Markdown are not the same. At best, Commonmark is a derivative of Markdown which, by its own admission, behaviors differently than Markdown in some very specific ways. This is one of those ways. The Commonmark spec <https://spec.commonmark.org/0.28/#list-items> specifically permits a list to "interrupt a paragraph” while the Markdown rules <https://daringfireball.net/projects/markdown/syntax#list> (which Python-Markdown follows) disallow that. According to the Markdown rules (and the reference implementation) a list must always be preceded by a blank line. This is a feature, not a bug. For example, this problem <https://stackoverflow.com/q/37464769/866026> is avoided with Markdown’s behavior. >> >> Waylan Limberg >> >> >> >>> On Dec 26, 2018, at 5:47 PM, Humberto Ayres Pereira <hum...@pa... <mailto:hum...@pa...>> wrote: >>> >>> Text >>>> >>>> * item 1 >>> >>>> This is one block, you require two, so use the required layout? >>> >>> Sure, it in GitHub Markdown it’s 2 blocks. I was just confused. >>> >>> _______________________________________________ >>> Python-markdown-discuss mailing list >>> Pyt...@li... <mailto:Pyt...@li...> >>> https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss <https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss> >> > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss |