No description
Find a file
Eric Holscher 9a9bcef0e3 Merge pull request #9 from tqchen/master
add inline math
2015-10-19 14:06:38 -07:00
docs Merge pull request #9 from tqchen/master 2015-10-19 14:06:38 -07:00
recommonmark Merge pull request #9 from tqchen/master 2015-10-19 14:06:38 -07:00
tests Add initial stab at testing & Travis/Tox integration 2015-10-19 11:41:10 -07:00
.gitignore add configuration from doc.env 2015-08-02 17:54:06 -07:00
.travis.yml Add initial stab at testing & Travis/Tox integration 2015-10-19 11:41:10 -07:00
license.md Create license.md 2014-10-14 11:32:29 +02:00
prospector.yml Add initial stab at testing & Travis/Tox integration 2015-10-19 11:41:10 -07:00
README.md A bit more wording 2015-10-19 10:58:26 -07:00
requirements.txt Add saner reqs 2015-10-19 11:50:24 -07:00
setup.cfg Add setup.cfg 2015-02-13 11:45:18 -08:00
setup.py Rename the project as recommonmark 2014-12-08 00:25:40 +01:00
tox.ini Don't double specify bits 2015-10-19 13:22:53 -07:00

recommonmark

A docutils-compatibility bridge to CommonMark.

This allows you to write CommonMark inside of Docutils & Sphinx projects.

Documentation is available on Read the Docs: http://recommonmark.readthedocs.org

Getting Started

To use recommonmark inside of Sphinx only takes 2 steps. First you install it:

pip install recommonmark 

Then add this to your Sphinx conf.py:

from recommonmark.parser import CommonMarkParser

source_parsers = {
    '.md': CommonMarkParser,
}

source_suffix = ['.rst', '.md']

This allows you to write both .md and .rst files inside of the same project.

Why a bridge?

Many python tools (mostly for documentation creation) rely on docutils. But docutils only supports a ReStructuredText syntax.

For instance this issue and this StackOverflow question show that there is an interest in allowing docutils to use markdown as an alternative syntax.

Why another bridge to docutils?

recommonmark uses the python implementation of CommonMark while remarkdown implements a stand-alone parser leveraging parsley.

Both output a docutils document tree and provide scripts that leverage docutils for generation of different types of documents.

Acknowledgement

recommonmark is mainly derived from remarkdown by Steve Genoud and leverages the python CommonMark implementation.

It was originally created by Luca Barbato, and is now maintained in the Read the Docs (rtfd) GitHub organization.