-
Notifications
You must be signed in to change notification settings - Fork 31
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
Comply with CommonMark 0.30 #226
Conversation
Merge upstream branch main into branch commonmark
Merge upstream branch main into branch commonmark
Merge upstream branch main into branch commonmark
9635f55
to
e805418
Compare
7ead3cc
to
61b61d6
Compare
The header attribute context now only spans the heading and its attributes, not the entire section implied by the heading. Entire sections are surrounded by `sectionBegin` and `End` renderers since version 2.21.0 of the Markdown Package for TeX.
if match_link_attributes then | ||
matching_content = matching_content * Cg(Ct(parsers.attributes^-1), "attributes") | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lostenderman: The purpose of built-in syntax extensions was to separate the syntax extensions from the base reader in order to make the code more modular and easier to reason about. In essence, the option options.linkAttributes
should not be accessed from the base markdown reader. All code for options.linkAttributes
should be encapsulated in M.extensions.link_attributes
. Not sure how to get there but the current implementation is a step down in terms of code quality.
As reported by @TeXhackse, testing can take up to 8G RAM with 4 CPUs and batch size 100, which seems excessive. This is related to #226, #308, and #318.
Closes #212 and #29. Funded by project MUNI/33/1654/2022.