mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
14 lines
299 B
Python
14 lines
299 B
Python
from docutils.parsers import Parser
|
|
|
|
|
|
class DummyMarkdownParser(Parser):
|
|
supported = ('markdown',)
|
|
|
|
def parse(self, inputstring, document):
|
|
document.rawsource = inputstring
|
|
|
|
|
|
def setup(app):
|
|
app.add_source_suffix('.md', 'markdown')
|
|
app.add_source_parser(DummyMarkdownParser)
|