Open apjones6 opened 9 years ago
This is an actual issue for using turndown as a Markdown converter whenever using escaped HTML elements in the input format, as they will be incorrectly output as HTML tags. A quick hack to fix this is ensuring < and > are always re-encoded as entities.
Duplicate issue: #261.
With a standard MD parser encoded HTML tags allows you to include them as readable text. For example (plain HTML included for comparison):
results in the output HTML:
However if I put this output HTML through to-markdown the encoded < and > characters are erroneously decoded. This results in the following markdown:
(whitespace lines removed from examples for brevity)