Skip to content

Commit

Permalink
Try to fix failing CI tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
HaudinFlorence committed Oct 4, 2024
1 parent 37485ef commit fde7ab7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nbconvert/exporters/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,8 @@ def from_notebook_node( # type:ignore[explicit-override, override]
if cell.cell_type == "markdown":
markdown_collection = markdown_collection + cell.source + "\n"

resources["tableofcontents"] = extract_titles_from_markdown_input(markdown_collection)

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

filter_data_type = WidgetsDataTypeFilter(
notebook_metadata=self._nb_metadata, parent=self, resources=resources
Expand Down

0 comments on commit fde7ab7

Please sign in to comment.