I have double quotes in a markdown document that I am parsing to HTML using marked. I need them to remain unchanged through the parses because I am piping the output through another program that needs them. However, marked will automatically. convert my quotes from " to &qout;.
Is there any way I can make marked stop this behavior? Are there any options I can use? Or does anyone know of any other node.js markdown parsers that have?
marked has a setting sanitize. If you set it to false (which it is by default), it will leave " alone. This will also not escape <, >, &, or ' which you may want though. All this does is replace " with ", so you can just take the output and call .replace(/"/g, '"')