From 8ee747043506e8550044d716f4abaee74ed738db Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 19 Dec 2023 23:41:37 +0000 Subject: [PATCH] docs: fix incorrect header handling in markdown rendering --- .docs/lib/parse_sections.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.docs/lib/parse_sections.js b/.docs/lib/parse_sections.js index 73df3b2..8f8be3b 100644 --- a/.docs/lib/parse_sections.js +++ b/.docs/lib/parse_sections.js @@ -39,8 +39,8 @@ function make_section(acc, cat_current, cats) { .replace(/\s+/g, "-") .replace(/-.*$/, ""), content: markdown.render(acc.slice(1).join("\n")) - .replace(//g, "") - .replace(//g, "") + .replace(/<(\/?)h4>/g, "<$1h3>") + .replace(/<(\/?)h5>/g, "<$1h4>") }; }