Skip to content

Commit

Permalink
docs: fix incorrect header handling in markdown rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrl committed Dec 19, 2023
1 parent edbb6db commit 8ee7470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .docs/lib/parse_sections.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ function make_section(acc, cat_current, cats) {
.replace(/\s+/g, "-")
.replace(/-.*$/, ""),
content: markdown.render(acc.slice(1).join("\n"))
.replace(/<h4(\/?)>/g, "<h3$1>")
.replace(/<h5(\/?)>/g, "<h4$1>")
.replace(/<(\/?)h4>/g, "<$1h3>")
.replace(/<(\/?)h5>/g, "<$1h4>")
};
}

Expand Down

0 comments on commit 8ee7470

Please sign in to comment.