-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Italics failing under certain cases #298
Comments
This is my options with https://github.com/chjj/marked/blob/ab84e8c6055b020f29134b93c86a9ae2ce955706/lib/marked.js: {
gfm: false,
tables: false, //need gfm
breaks: false, //need gfm
pedantic: false, // if it is true, my examples below will fail
sanitize: true, // if it is false, my examples below will fail
smartLists: false,
smartypants: false,
} I found it even more strange:
Your example above is different with "*":
becomes: <p>this is a simple <em>italics </em>without space <br>
this is another <em>italics</em>without space<br>
this is yet another <em>italics</em> with space<br></p> |
I just used the current library as is - no changes to the config. So * seems to be working fine huh. Let me give it a try and let you know. Thanks for the quick response. |
I did some tests with the MD dingus and with Marked with
So... looks to me like Marked is pretty accurate. |
I disagree @adam-p : Dingus does not produce the same results you have mentioned. MD: Here is a screenshot of the output in Dingus: Here's another example: |
I tried |
Italics fails under many conditions:
this is a simple _italics _without space <br>
should yield HTML:<p>this is a simple <em>italics </em>without space <br></p>
(as per http://daringfireball.net/projects/markdown/dingus)
instead marked gives me:
<p>this is a simple _italics _without space <br></p>
Markdown:
this is another _italics_without space
Exp result:
<p>this is another <em>italics</em>without space<br></p>
Marked result:
<p>this is another _italics_without space<br></p>
Markdown:
this is a simple _italics _without space <br> this is another _italics_without space<br> this is yet another _italics_ with space<br>
should yield:
Marked yields:
The text was updated successfully, but these errors were encountered: