Fix trailing ~~ handling
This commit is contained in:
1 parent
d5c397c677
commit
e1c2fae248
1 file changed
+5
@@ -93,6 +93,11 @@ std::vector<Span> parseInline(const std::string& text) {
|
||||
// Escaped character
|
||||
if (c == '\\' && i + 1 < text.size()) {
|
||||
char next = text[i + 1];
|
||||
if (next == '~' && i + 2 < text.size() && text[i + 2] == '~') {
|
||||
current.append("~~");
|
||||
i += 3;
|
||||
continue;
|
||||
}
|
||||
if (next == '*' || next == '_' || next == '`' || next == '[' || next == '!' || next == '~' || next == '\\') {
|
||||
current += next;
|
||||
i += 2;
|
||||
|
||||
Reference in new issue
Block a user