Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Single and Double Quotes in code blocks get escaped  #10

@joubertnel

Description

@joubertnel

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions