glow icon indicating copy to clipboard operation
glow copied to clipboard

Escape character is rendered

Open rkochar opened this issue 1 year ago • 2 comments

Escape characters should not be printed.

The first cell of second row should be printed as pipe | pipe where the | is escaped. The output however is pipe \| pipe

| a | b | c |
|---|---|---|
|test1|test2|test3|
|pipe \| pipe | 2 | 3 |

Setup Please complete the following information along with version numbers, if applicable.

glow version 1.5.1 (ad21129)

rkochar avatar Aug 27 '23 10:08 rkochar

This seems to be the case for most of the escapable characters supported in markdown. I ran across it when playing around with glow as a way to render godoc via gomarkdoc (which aggressively escapes all characters it can), and most of them are displayed unaltered:

image

flowchartsman avatar Nov 26 '23 13:11 flowchartsman

@flowchartsman Your example shows that it is a serious bug to usability. Hopefully the developers fix it soon or atleast provide a timeline. @caarlos0

rkochar avatar Nov 26 '23 16:11 rkochar