Closed ashleygwilliams closed 8 years ago
😳 Fascinating!
markdown-it
is supposed to normalize line endings, so this must be somehow making it through that; I'll start looking there for answers.
ok, it's because the regular expression markdown-it uses is skipping the \r
line endings in this file.
@ashleygwilliams do you think that counts as a bug in markdown-it
?
This is kind of a kick; according to Wikipedia's Newline article, \r
by itself as a line ending was used on such systems as:
Commodore 8-bit machines, Acorn BBC, ZX Spectrum, TRS-80, Apple II family, Oberon, Mac OS up to version 9, MIT Lisp Machine and OS-9
... so I have a (presumptuous) hunch that if I open a bug, it'll be written off as input error 😛 . I'm willing to give it a shot though.
But still, how cool would it be if people were authoring node packages on one of those platforms?
(as the WP article points out, \r
is a valid line terminator in the Unicode standard)
@revin yeah that def sounds like a markdown it bug to me... but since you filed last time- do you want me to file?
also i love this bug
If you totally want to or whatever, go for it; I don't mind doing it tomorrow myself either though. Whoever has time first.
Agreed, this is a pretty great bug.
On Tuesday, May 31, 2016, ashley williams notifications@github.com wrote:
@revin https://github.com/revin yeah that def sounds like a markdown it bug to me... but since you filed last time- do you want me to file?
also i love this bug
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/npm/marky-markdown/issues/194#issuecomment-222865202, or mute the thread https://github.com/notifications/unsubscribe/AAFygsZsSNL5hnpwHG7nj7SEhH4zuwZGks5qHNo4gaJpZM4IrDJN .
Revin Guillen rg@sevenite.com
@ashleygwilliams markdown-it#252
ok they fixed it; presumably it'll be in markdown-it@6.0.5; which means we'll be blocked here until we merge #153 since we're still on 5.x in marky@7.
Fixed in 8.0.
🍾 pour one out for a really great bug
https://github.com/ashleygwilliams/marky-test
steps to repro:
git clone
npm install
npm test
open README.html