From ee466292f4e59f56d54849580b030d6bd8d5531b Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Thu, 5 Sep 2024 13:43:52 +0100 Subject: [PATCH] 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. --- src/nbsphinx/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nbsphinx/__init__.py b/src/nbsphinx/__init__.py index a7cd99c1..0000c536 100644 --- a/src/nbsphinx/__init__.py +++ b/src/nbsphinx/__init__.py @@ -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'