Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cases when backslash should not be shown #555

Open
Disonantemus opened this issue Jan 7, 2024 · 0 comments
Open

Cases when backslash should not be shown #555

Disonantemus opened this issue Jan 7, 2024 · 0 comments

Comments

@Disonantemus
Copy link

Describe the bug
Glow render backslash, in cases that should not. Bellow there are two cases, maybe there are more. Tested with lowdown and all (8) the online editors at the end with same result.

Setup

  • OS: Arch
  • Shell: bash
  • Terminal: st
  • Multiplexer: tmux
  • Locale: es

To Reproduce

  1. Backslash previous to square bracket: \[ or \]
$ 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]
  1. ***
$ echo '\***' | glow
  \***
$ echo '\*\**' | glow
  \*\**
$ echo '\*\*\*' | glow
  \*\*\*

$ echo '\***' | lowdown | w3m -T text/html -dump
***
$ echo '\*\**' | lowdown | w3m -T text/html -dump
***
$ echo '\*\*\*' | lowdown | w3m -T text/html -dump
***

Expected behavior
Lowdown output.

Reference URLS:
Glamour Issue #274
Lowdown
Markdown: Dingus
Commonmark
Minimalist Online Markdown Editor
Markdown Live Preview
Markdown Editor
Dillinger: The Last Markdown Editor, Ever
StackEdit
markdown-it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant