glamour icon indicating copy to clipboard operation
glamour copied to clipboard

[BUG] cases when backslash should not be shown

Open Disonantemus opened this issue 6 months ago • 0 comments

Both tested with glow and lowdown, also tested with all the online markdown editors in the end. Maybe both BUGS are related.

  1. 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.


  1. 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

Disonantemus avatar Jan 07 '24 23:01 Disonantemus