mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2025-12-31 13:48:24 +03:00
fix format_documentation for [code skip-lint] (#700)
This commit is contained in:
@@ -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, "");
|
||||
|
||||
Reference in New Issue
Block a user