Skip to content

Commit

Permalink
fix format_documentation for [code skip-lint] (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
funnbot authored Aug 20, 2024
1 parent 5c026f0 commit d915dcc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/providers/documentation_builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, "");
Expand Down

0 comments on commit d915dcc

Please sign in to comment.