Skip to content

Commit 829a61c

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 829a61c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nbsphinx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ def filter_func(text):
10431043
input_format += '-implicit_figures'
10441044
v = nbconvert.utils.pandoc.get_pandoc_version()
10451045
if nbconvert.utils.version.check_version(v, '1.13'):
1046-
input_format += '-native_divs+raw_html'
1046+
input_format += '-native_divs+raw_html+lists_without_preceding_blankline'
10471047
if nbconvert.utils.version.check_version(v, '2.0'):
10481048
input_format += '-smart' # Smart quotes etc. are handled by Sphinx
10491049

0 commit comments

Comments
 (0)