Skip to content

Commit ee46629

Browse files
markdown: Fix bullet list parsing
Jupyter markdown allows bullet list to start right after the previous element, without any blank line in between. The default settings of pandoc is to not recognize that as a bullet list. Therefore, enable the pandoc markdown extension that makes the blank line optional.
1 parent f7647f2 commit ee46629

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/nbsphinx/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,6 +1041,7 @@ def filter_func(text):
10411041

10421042
input_format = 'markdown'
10431043
input_format += '-implicit_figures'
1044+
input_format += '+lists_without_preceding_blankline'
10441045
v = nbconvert.utils.pandoc.get_pandoc_version()
10451046
if nbconvert.utils.version.check_version(v, '1.13'):
10461047
input_format += '-native_divs+raw_html'

0 commit comments

Comments
 (0)