mirror of
https://github.com/RGBCube/serenity
synced 2025-07-17 18:27:36 +00:00
LibMarkdown: Ignore backslash on non-punctuation characters
This commit is contained in:
parent
0270e23997
commit
5ad44ac2e5
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ Vector<Text::Token> Text::tokenize(StringView str)
|
||||||
in_space = false;
|
in_space = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ch == '\\' && offset + 1 < str.length()) {
|
if (ch == '\\' && offset + 1 < str.length() && ispunct(str[offset + 1])) {
|
||||||
current_token.append(str[offset + 1]);
|
current_token.append(str[offset + 1]);
|
||||||
++offset;
|
++offset;
|
||||||
} else if (ch == '*' || ch == '_' || ch == '`') {
|
} else if (ch == '*' || ch == '_' || ch == '`') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue