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

fix asterisk emphasis rendering by upgrading marked library #79

Closed
wants to merge 1 commit into from
Closed

fix asterisk emphasis rendering by upgrading marked library #79

wants to merge 1 commit into from

Conversation

petergardfjall
Copy link

marked v1.1.1 has a problem in rendering emphasis with asterisks (see
markedjs/marked#1754).

For example,

echo "*A pigeon*: a  type of *bird*" | md-to-pdf --as-html

renders as

<body class="">
<p><em>A pigeon</em>: a  type of <em>bird</em></p>
</body></html>

instead of the expected:

<body class="">
<p><em>A pigeon*: a  type of *bird</em></p>
</body></html>

Version 1.1.2 resolves this issue (see
markedjs/marked#1754 (comment)).

marked v1.1.1 has a problem in rendering emphasis with asterisks (see
markedjs/marked#1754).

For example,

    echo "*A pigeon*: a  type of *bird*" | md-to-pdf --as-html

renders as

    <body class="">
    <p><em>A pigeon</em>: a  type of <em>bird</em></p>
    </body></html>

instead of the expected:

    <body class="">
    <p><em>A pigeon*: a  type of *bird</em></p>
    </body></html>

Version 1.1.2 resolves this issue (see
markedjs/marked#1754 (comment)).
@simonhaenisch
Copy link
Owner

Thanks however I'd rather update to the latest version (1.2.3) which I've already done, plus I've also updated all the other dependencies 🤓

Thanks for the PR though!

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

Successfully merging this pull request may close these issues.

None yet

2 participants