Skip to content

Commit

Permalink
Try to fix failing linting test.
Browse files Browse the repository at this point in the history
  • Loading branch information
HaudinFlorence committed Oct 7, 2024
1 parent 6a5f4cb commit b31a287
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nbconvert/exporters/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ def from_notebook_node( # type:ignore[explicit-override, override]
markdown_collection = markdown_collection + cell.source + "\n"

resources = self._init_resources(resources)
if resources is None:
resources = {}
resources.update({"tableofcontents": extract_titles_from_markdown_input(markdown_collection)})

filter_data_type = WidgetsDataTypeFilter(
Expand Down

0 comments on commit b31a287

Please sign in to comment.