You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't see a problem. If a problem with something so essential existed, there would probably be multiple test failures. Marked is passing every test it should.
I'm guessing you're having the problem mentioned in #52, where sometimes contenteditable elements and other things will replace SP, LF, or CRLF with \u00a0 or something else weird like the unicode NL character. This is really the browsers fault, but I should probably land the fix for this because a lot of people seem unaware of this quirk.
The biggest difference that GFM introduces is in the handling of linebreaks. With SM you can hard wrap paragraphs of text and they will be combined into a single paragraph. We find this to be the cause of a huge number of unintentional formatting errors. GFM treats newlines in paragraph-like content as real line breaks, which is probably what you intended.
so i think in marked, when i use gfm: true, it should be follow gfm style
Activity
chjj commentedon Oct 1, 2012
I don't see a problem. If a problem with something so essential existed, there would probably be multiple test failures. Marked is passing every test it should.
I'm guessing you're having the problem mentioned in #52, where sometimes contenteditable elements and other things will replace SP, LF, or CRLF with
\u00a0or something else weird like the unicodeNLcharacter. This is really the browsers fault, but I should probably land the fix for this because a lot of people seem unaware of this quirk.joemccann commentedon Oct 6, 2012
Yeah would be great. Would love to move over to Marked for Dillinger.io
paulmillr commentedon Oct 30, 2012
GFM bug:
on github gives:
A
B
C
when in marked it gives one line with three spaces
yyfearth commentedon Nov 3, 2012
but in GFM, it designed to be use new line directly instead of use spaces in one line, i think it is not a bug
http://github.github.com/github-flavored-markdown/:
so i think in marked, when i use gfm: true, it should be follow gfm style
remove u00a0. fixes #52 and possibly #81.
chjj commentedon Jan 3, 2013
This will either be solved with the fix referenced above, or from the addition of gfm line breaks.
remove u00a0. fixes markedjs#52 and possibly markedjs#81.