From 9cfc4b72024554107e7d0c2a12ea1db9b63dcd98 Mon Sep 17 00:00:00 2001 From: funnbot <22226942+funnbot@users.noreply.github.com> Date: Mon, 19 Aug 2024 17:15:09 -0700 Subject: [PATCH] fix format_documentation for `[code skip-lint]` --- src/providers/documentation_builder.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/providers/documentation_builder.ts b/src/providers/documentation_builder.ts index d12b7d15..85ac8735 100644 --- a/src/providers/documentation_builder.ts +++ b/src/providers/documentation_builder.ts @@ -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\]()?/g, "");