charmbracelet/glamour

Inline code error with HTML Symbol Entities

Disonantemus opened this issue · 2 comments

If I do this in terminal:

echo "`© ↓ ♠ — € ∑ ∇ Γ Δ ☂`" | glow

I get this with CLI (Same happens with TUI):
© ↓ ♠ — € ∑ ∇ Γ Δ ☂


If I do the same, at every online markdown renderers that I know (including Github), I get:
© ↓ ♠ — € ∑ ∇ Γ Δ ☂


> glow -v version
glow version 1.5.0 (19732a6)

Online Markdown Renderers that I did test:

https://daringfireball.net/projects/markdown/dingus
https://spec.commonmark.org/dingus/
http://markdown.pioul.fr/
https://markdownlivepreview.com/
https://jbt.github.io/markdown-editor/
https://dillinger.io/
https://markdown-it.github.io

Hey, thanks for reporting this. I was able to reproduce this with inline code formatting, though it prints as expected (not rendering symbols) when using code blocks. Will mark this as a bug

It looks like this is a duplicate of #94 (closing because it is a duplicate)

This provides us with more examples to test, so thanks again for the reminder on this one