mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fixed color code highlight
This commit is contained in:
parent
a93af583d1
commit
acb07c6664
1 changed files with 2 additions and 4 deletions
|
|
@ -114,10 +114,8 @@ Result<CharT> process_markdown(
|
|||
}
|
||||
pos--;
|
||||
}
|
||||
} else if (first == '[' && pos + 9 < source.size() &&
|
||||
source[pos + 1] == '#' && source[pos + 8] == ']') {
|
||||
std::basic_string_view<CharT> color_code =
|
||||
source.substr(pos + 1, 8);
|
||||
} else if (first == '[' && pos + 9 <= source.size() && source[pos + 1] == '#' && source[pos + 8] == ']') {
|
||||
std::basic_string_view<CharT> color_code = source.substr(pos + 1, 8);
|
||||
apply_color(color_code, styles);
|
||||
if (!eraseMarkdown) {
|
||||
for (int i = 0; i < 9; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue