Skip to content

Commit

Permalink
fix(core): escape the pipe symbol during serialization to markdown (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
d3m1d0v authored Nov 11, 2022
1 parent 0e6abd9 commit f766021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/markdown/MarkdownSerializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export class MarkdownSerializerState {
// have special meaning only at the start of the line.
esc(str, startOfLine) {
// TODO: add a setting which characters need to be escaped
str = str.replace(/[`\^+*\\~\[\]\{\}<>\$]/g, '\\$&');
str = str.replace(/[`\^+*\\\|~\[\]\{\}<>\$]/g, '\\$&');
if (startOfLine) str = str.replace(/^[:#\-*+>]/, '\\$&').replace(/^(\s*\d+)\./, '$1\\.');
return str;
}
Expand Down

0 comments on commit f766021

Please sign in to comment.