1

Is there a list of extensions that adds python-markdown the syntax additions from github flavoured markdown ?

So far I have found:

Provided with python-markdown:

3rd party:

Code highlighting seems more tricky, so far I've only seen extensions that use other (weird to me) syntax.

I'm sure there are other github flavoured markdown features I am missing too.

3
  • 1
    What do you mean by Python markdown? Commented Oct 9, 2019 at 21:07
  • pandoc has a css to render like github markdown, grip is another python package to do the rendering... would they contain some info? Commented Oct 9, 2019 at 21:58
  • I don't mean the rendering side, I mean to understand the extensions github added, for instance I listed an extension that understands the github syntax for making checklists. Commented Oct 10, 2019 at 9:23

1 Answer 1

2

Can the python-markdown approximate github markdown by installing extensions?

Mostly yes. Note that GitHub Flavored Markdown (GFM) is built on Commonmark and Python-Markdown is not a Commonmark implementation. Therefore, any differences between Commonmark and the original Markdown rules would need to be addressed by extensions. Those differences are all documented in the Commonmark spec. However, of concern is Commonmark's indentation. It is not likely that Python-Markdown could be adapted to match the exact behavior of the Commonmark spec on this point. That said, for most any "well formed" Markdown, it should be doable.

Then on top of adapting Python-Markdown to Commonmark, you would need extensions to match the various extensions provided by GFM, which are all defined in GitHub's spec (the extensions are all highlighted with a blue background). Note that while Fenced Code Blocks are part of Commonmark, and therefore are not an extension to GFM, they are not part of the original Markdown rules and therefore would require use of the Fenced Code Block extension.

Is there a list of extensions that adds python-markdown the syntax additions from github flavoured markdown ?

I've never seen such a list, which would be off-topic here anyway. That said, you can find a list of all built-in extensions in the Python-Markdown documentation and a list of all known third-party extensions on the project's wiki. I expect you will find extensions which add of of GFM's add-on behavior, but it will be more difficult to find extensions which match Commonmark's base behavior. And the Python-Markdown developers have expressly stated that they are not interested in supporting Commonmark. Any such support would need to come from third party extensions. I expect extensions for most of the differences have not yet been created.

Full disclosure: I am the lead developer of Python-Markdown.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the comprehensive answer, I didn't even know about CommonMark before this. Looking at the spec, I probably don't even need all of it. I'll have a play with py-gfm next and see what that is like vs built in various built in extensions and external extensions such as markdown-checklists.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.