-
Notifications
You must be signed in to change notification settings - Fork 10
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
Some failures of markdown-it JS test fixtures #23
Comments
I guess, it would be great to have a mechanism in Rust to directly test these files. |
I use completely different linkify implementation, not related to JS in any way. Don't expect feature parity there. You can open any issues you find at https://github.com/robinst/linkify For bare urls, you can read this discussion: robinst/linkify#7 |
The rest are probably bugs, which I'll have to look into shortly. |
I'd note this not a limitation of linkify, which does parse these bare URLs: The main limitation is in the plugin implementation here, which only searches for I've now implemented https://crates.io/crates/markdown-it-autolink, for strict GFM autolink parsing. |
ah okay, in original markdown-it we have two rules (inline rule that catches copy-pasted urls and core rule that catches everything), but here I've only implemented first one for simplicity so the way to fix it is to re-scan all text later after inline parser is done, see: compare it to rule I've implemented here (and you probably copied): |
In https://github.com/chrisjsewell/markdown-it-pyrs/tree/main/tests/fixtures, I have essentially taken all the test fixtures that were present in markdown-it and applied them to this implementation.
I am currently skipping a few tests failing in
commonmark_extras.md
:A few in
normalize.md
:#720
and all of
linkify.md
, since the current plugin no longer parses "bare" URLs, e.g. it parses http://example.com but not www.example.comAre these known issues/changes?
Note, ideally with this linkify, or perhaps in a separate plugin, it would obviously be desirable to create a GFM compliant rule for: https://github.github.com/gfm/#autolinks-extension-
The text was updated successfully, but these errors were encountered: