glamour
glamour copied to clipboard
[BUG] cases when backslash should not be shown
Both tested with glow and lowdown, also tested with all the online markdown editors in the end. Maybe both BUGS are related.
- Escaped square brackets
$ echo "\[Should not show backslash\]" | glow
\[Should not show backslash\]
$ echo "\[Should not show backslash\]" | lowdown | w3m -T text/html -dump
[Should not show backslash]
Should not show any backslash. Lowdown is correct, the same as all online editors at the end.
- Edge case:
***
$ echo '\***' | glow
\***
$ echo '\*\**' | glow
\*\**
$ echo '\*\*\*' | glow
\*\*\*
Should not show any backslash.
$ echo '\***' | lowdown | w3m -T text/html -dump
***
$ echo '\*\**' | lowdown | w3m -T text/html -dump
***
$ echo '\*\*\*' | lowdown | w3m -T text/html -dump
***
Lowdown is correct, the same as all online editors at the end.
- Reference URLS:
Lowdown Markdown: Dingus Commonmark Minimalist Online Markdown Editor Markdown Live Preview Markdown Editor Dillinger: The Last Markdown Editor, Ever StackEdit markdown-it