fix format_documentation for [code skip-lint] (#700)

This commit is contained in:
Dillon Bayless
2024-08-19 19:32:10 -07:00
committed by GitHub
parent 5c026f0b32
commit d915dccba1

View File

@@ -362,6 +362,8 @@ function make_codeblock(code: string, language: string) {
}
function format_documentation(bbcode: string, classname: string) {
// ya-bbcode doesn't parse [code skip-lint] as a [code] tag
bbcode = bbcode.replaceAll("[code skip-lint]", "[code]");
let html = parser.parse(bbcode.trim());
html = html.replaceAll(/\[\/?codeblocks\](<br\/>)?/g, "");