Skip to content

Commit a1eb2f3

Browse files
committed
Merge pull request #1531 from rtfd/make-md-source-parser-configurable
Make source_parsers['.md'] configurable in conf.py
2 parents cede081 + 8008c2e commit a1eb2f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readthedocs/doc_builder/templates/doc_builder/conf.py.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ if version_info[0] == 1 and version_info[1] > 2:
2020
source_suffix = ['.rst', '.md']
2121

2222
if 'source_parsers' in globals():
23-
source_parsers['.md'] = CommonMarkParser
23+
if '.md' not in source_parsers:
24+
source_parsers['.md'] = CommonMarkParser
2425
else:
2526
source_parsers = {
2627
'.md': CommonMarkParser,

0 commit comments

Comments
 (0)