Consider the following HTML example:
When I try converting this to Markdown using Turndown, I get the following output:
I guess I would expect Turndown to preserve HTML entities and to output something like this instead:
I couldn't see an option to turn this on, so unless I'm missing something, I assume I need to use something like https://www.npmjs.com/package/html-entities. But I just wanted to check I'm not missing anything obvious?
Here's the config I'm using:
const INITIAL_TURNDOWN_OPTIONS: Turndown.Options = {
headingStyle: "atx",
hr: "---",
bulletListMarker: "-",
codeBlockStyle: "fenced",
fence: "```",
emDelimiter: "_",
strongDelimiter: "**",
linkStyle: "inlined",
};
Any help much appreciated!
Consider the following HTML example:
When I try converting this to Markdown using Turndown, I get the following output:
I guess I would expect Turndown to preserve HTML entities and to output something like this instead:
I couldn't see an option to turn this on, so unless I'm missing something, I assume I need to use something like https://www.npmjs.com/package/html-entities. But I just wanted to check I'm not missing anything obvious?
Here's the config I'm using:
Any help much appreciated!