mirror of
https://github.com/godotengine/godot
synced 2024-09-05 05:38:35 +00:00
Fix codeblock formating to markdown
This commit is contained in:
parent
351c45a461
commit
d1a6964d39
|
@ -345,13 +345,13 @@ String ExtendGDScriptParser::marked_documentation(const String &p_bbcode) {
|
|||
if (block_start != -1) {
|
||||
code_block_indent = block_start;
|
||||
in_code_block = true;
|
||||
line = "'''gdscript\n";
|
||||
line = "\n";
|
||||
} else if (in_code_block) {
|
||||
line = "\t" + line.substr(code_block_indent, line.length());
|
||||
}
|
||||
|
||||
if (in_code_block && line.find("[/codeblock]") != -1) {
|
||||
line = "'''\n\n";
|
||||
line = "\n";
|
||||
in_code_block = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue