From fde7ab7f774756e2d350129e4e2627fbde670e5e Mon Sep 17 00:00:00 2001 From: HaudinFlorence Date: Fri, 4 Oct 2024 16:11:10 +0200 Subject: [PATCH] Try to fix failing CI tests. --- nbconvert/exporters/html.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nbconvert/exporters/html.py b/nbconvert/exporters/html.py index 89a3558e7..5c6f6c478 100644 --- a/nbconvert/exporters/html.py +++ b/nbconvert/exporters/html.py @@ -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