Skip to content

Commit 78379dd

Browse files
committed
Made markdown module optional to fix on RTD
1 parent ee8de0c commit 78379dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def getVersion():
3838
],
3939
install_requires=[
4040
'sphinx>=1.2.0',
41-
'CommonMark>=0.5.6'
41+
'CommonMark'
4242
],
4343
extras_require={
4444
'dev': ['pytest', 'sphinx_rtd_theme']

sphinxarg/ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from sphinx.util.nodes import nested_parse_with_titles
1111

1212
from sphinxarg.parser import parse_parser, parser_navigate
13-
from sphinxarg.markdown import parseMarkDownBlock
1413

1514

1615
def map_nested_definitions(nested_content):
@@ -457,6 +456,7 @@ def run(self):
457456
items = []
458457
nested_content = nodes.paragraph()
459458
if 'markdown' in self.options:
459+
from sphinxarg.markdown import parseMarkDownBlock
460460
items.extend(parseMarkDownBlock('\n'.join(self.content) + '\n'))
461461
else:
462462
self.state.nested_parse(

0 commit comments

Comments
 (0)