Skip to content

Commit

Permalink
markdown: Fix bullet list parsing
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
douglas-raillard-arm authored and mgeier committed Oct 1, 2024
1 parent da82a07 commit 84b9575
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nbsphinx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,7 @@ def filter_func(text):

input_format = 'markdown'
input_format += '-implicit_figures'
input_format += '+lists_without_preceding_blankline'
v = nbconvert.utils.pandoc.get_pandoc_version()
if nbconvert.utils.version.check_version(v, '1.13'):
input_format += '-native_divs+raw_html'
Expand Down

0 comments on commit 84b9575

Please sign in to comment.