Skip to content

Markdown extensions

Dmitry Shachnev edited this page Sep 16, 2015 · 7 revisions

ReText supports Python-Markdown extensions.

Extra extension set is enabled by default. Math extension is enabled and can be used with the WebKit renderer.

Enabling extensions for a particular document

The easiest way to enable additional extensions is listing their names (with options, if needed) in the first line of a document. For example:

<!-- Required extensions: sane_lists, headerid(level=3) -->

Enabling extensions globally

  • If you want some extensions applied to all documents in a directory, list them in markdown-extensions.txt file in that directory.
  • If you want some extensions applied to all documents, list them in $HOME/.config/markdown-extensions.txt file.

In markdown-extensions.txt, extensions should be specfied one on its own line, for example:

sane_lists
headerid(level=3)

Third-party extensions

For third-party extensions, specify their full name that can be imported from Python, for example mypackage.mymodule.

All known third-party extensions are listed in Python-Markdown wiki.

Clone this wiki locally