Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single and Double Quotes in code blocks get escaped #10

Open
joubertnel opened this issue Jan 14, 2014 · 1 comment
Open

Single and Double Quotes in code blocks get escaped #10

joubertnel opened this issue Jan 14, 2014 · 1 comment

Comments

@joubertnel
Copy link

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 '
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?

@st32lthx
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants