Skip to content

Commit f44936d

Browse files
committed
Escape '>' at the start of line
FIX: Serializing to Markdown now properly escapes '>' characters at the start of the line. Closes #56
1 parent 1f415d5 commit f44936d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/to_markdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export class MarkdownSerializerState {
365365
// have special meaning only at the start of the line.
366366
esc(str, startOfLine) {
367367
str = str.replace(/[`*\\~\[\]]/g, "\\$&")
368-
if (startOfLine) str = str.replace(/^[:#\-*+]/, "\\$&").replace(/^(\s*\d+)\./, "$1\\.")
368+
if (startOfLine) str = str.replace(/^[:#\-*+>]/, "\\$&").replace(/^(\s*\d+)\./, "$1\\.")
369369
return str
370370
}
371371

0 commit comments

Comments
 (0)