glow icon indicating copy to clipboard operation
glow copied to clipboard

[Bug] escaped character not showing properly

Open developomp opened this issue 3 years ago • 2 comments

How to reproduce escape a special character in the markdown file

example:

this is an asterisk: \*

Expected result it escapes the asterisk character to render this:

this is an asterisk: *

Actual result glow does not escape the asterisk character

this is an asterisk: \*

developomp avatar Jun 04 '21 04:06 developomp

This is super relevant for awsdocs .md files.. An example here: https://raw.githubusercontent.com/awsdocs/aws-cloudformation-user-guide/main/doc_source/aws-resource-ec2-subnet.md

Becomes this in Glow:

The smallest IPv4 subnet \(and VPC\) you can create uses a /28 netmask \(16 IPv4 addresses\), and the
  largest uses a /16 netmask \(65,536 IPv4 addresses\)\.

Any workarounds to remove all these backslashes?

jonasmellquist avatar Oct 27 '21 08:10 jonasmellquist

I would also be interested in a work around!

Anthony-Fiddes avatar Feb 11 '22 20:02 Anthony-Fiddes