From 20c0e56e0b78faaa63b7fcb78c3b244481f952e8 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 18 Nov 2024 18:06:13 +0100 Subject: [PATCH] Improve template a bit --- templates/toc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/toc.js b/templates/toc.js index a03e432095..a21133cc1c 100644 --- a/templates/toc.js +++ b/templates/toc.js @@ -8,7 +8,7 @@ class MDBookSidebarScrollbox extends HTMLElement { super(); } connectedCallback() { - this.innerHTML = {{ crate::renderer::html_renderer::toc::render(html_config, chapters, false)|fmt("'{}'") }}; + this.innerHTML = '{{ crate::renderer::html_renderer::toc::render(html_config, chapters, false) }}'; // Set the current, active page, and reveal it if it's hidden let current_page = document.location.href.toString(); if (current_page.endsWith("/")) {