diff options
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibMarkdown/Text.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibMarkdown/Text.cpp b/Userland/Libraries/LibMarkdown/Text.cpp index 1d91ebf648..54d78ffb69 100644 --- a/Userland/Libraries/LibMarkdown/Text.cpp +++ b/Userland/Libraries/LibMarkdown/Text.cpp @@ -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 == '`') { |