Skip to content

Commit

Permalink
Use own markdown2rst instead of nbconvert.filters.markdown2rst
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Mar 7, 2024
1 parent 6145052 commit 53be5e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nbsphinx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ def _extract_gallery_or_toctree(cell):
'invalid nbsphinx-[link-]gallery/nbsphinx-toctree option: {!r}'
.format(options))

text = nbconvert.filters.markdown2rst(cell.source)
text = markdown2rst(cell.source)
settings = docutils.frontend.OptionParser(
components=(rst.Parser,)).get_default_values()
node = docutils.utils.new_document('gallery_or_toctree', settings)
Expand Down

0 comments on commit 53be5e6

Please sign in to comment.