markdox icon indicating copy to clipboard operation
markdox copied to clipboard

Single and Double Quotes in code blocks get escaped

Open joubertnel opened this issue 12 years ago • 1 comments

When I have the following code block:

var pipe = new EventPipe(document, 'keydown', function(evt) {
    pipe.send(evt);
});

Markdox produces markdown with the single quotes changed to &#39; And since the this markdown is placed in a <pre><code>...</code></pre> block when the .md file is included in an HTML page using the markdownify plugin in Jekyll, the &#39; is seen in the final output:

var pipe = new EventPipe(document, `&#39;`keydown`&#39;` function(evt) {
    pipe.send(evt);
});

I'm using Markdox via the grunt-markdox task: https://npmjs.org/package/grunt-markdox

Why does Markdox change quotes and double quotes?

joubertnel avatar Jan 14 '14 06:01 joubertnel

Kind of related to this issue ... for some reason if I have a javascript object literal containing key or values defined with single quotes, the parser stops parsing the rest of the document ... not sure why

st32lthx avatar Nov 26 '14 17:11 st32lthx