Skip to content

[META] What version of CommonMark does each release comply with? #45

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

Open
K4LCIFER opened this issue Oct 19, 2024 · 2 comments
Open

[META] What version of CommonMark does each release comply with? #45

K4LCIFER opened this issue Oct 19, 2024 · 2 comments

Comments

@K4LCIFER
Copy link

I wasn't able to find any reference to a specific version of CommonMark that this project is attempting to comply with.

@K4LCIFER
Copy link
Author

K4LCIFER commented Oct 19, 2024

A search for "commonmark" in this repository shows many references to 0.30 , but there are a few that show other versions, eg:

This is rather contradictory. At any rate, the current CommonMark spec is 0.31.2, so this package is not up to date with upstream.

@Steve0Greatness
Copy link

Steve0Greatness commented Jan 24, 2025

TL;DR: this crate, markdown-it.rs, aleardy seems to comply with version 0.31.2, even if incidentally.

This might present a problem if 0.31.2 weren't just upkeep for the spec: updating outdated URLs, in some cases linking to archive.org archives, correcting spelling/grammar errors, etc.

The largest changes are a change of definition of punctuation marks in Unicode from "an ASCII punctuation character or anything in the general Unicode categories Pc, Pd, Pe, Pf, Pi, Po, or Ps" to "a character in the Unicode P (puncuation) or S (symbol) general categories."

In addition, there was the removal of a single hyphen to be interpreted as an empty list rather than setext heading (likely due to setext headers being able to be any length, including just 1); however, this crate already appears to comply with this (this can be verified on the online demo).

Second seems like The author stating that as of CommonMark 0.20, empty labels were disallowed, and not that the version as of now is 0.20. As for the first, I'm unsure--it could be updated, but given the only difference of that definition since 0.15 seems to be that at some point more explicit unicode character points were added, so this would likely be unnecessary.

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

No branches or pull requests

2 participants