mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibMarkdown: Ignore backslash on non-punctuation characters
This commit is contained in:
parent
0270e23997
commit
5ad44ac2e5
Notes:
sideshowbarker
2024-07-17 11:32:10 +09:00
Author: https://github.com/petelliott Commit: https://github.com/SerenityOS/serenity/commit/5ad44ac2e5 Pull-request: https://github.com/SerenityOS/serenity/pull/13803
@ -327,7 +327,7 @@ Vector<Text::Token> Text::tokenize(StringView str)
|
||||
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]);
|
||||
++offset;
|
||||
} else if (ch == '*' || ch == '_' || ch == '`') {
|
||||
|
Loading…
Reference in New Issue
Block a user