Skip to content
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

Merged
merged 352 commits into from
Jun 27, 2023
Merged

Comply with CommonMark 0.30 #226

merged 352 commits into from
Jun 27, 2023

Conversation

Witiko
Copy link
Owner

@Witiko Witiko commented Dec 12, 2022

Closes #212 and #29. Funded by project MUNI/33/1654/2022.

@Witiko Witiko added feature request good first issue lua Related to the Lua interface and implementation technical debt Related to code smells and refactoring markdown3 commonmark Related to making the syntax of markdown follow the CommonMark spec labels Dec 12, 2022
@Witiko Witiko added this to the 3.0.0 milestone Dec 12, 2022
@Witiko Witiko self-assigned this Dec 12, 2022
@Witiko Witiko marked this pull request as draft December 12, 2022 20:44
This was linked to issues Dec 29, 2022
@Witiko Witiko force-pushed the commonmark branch 5 times, most recently from 9635f55 to e805418 Compare June 27, 2023 12:52
@Witiko Witiko force-pushed the commonmark branch 3 times, most recently from 7ead3cc to 61b61d6 Compare June 27, 2023 18:35
@Witiko Witiko merged commit 2a52de2 into Witiko:main Jun 27, 2023
@Witiko Witiko deleted the commonmark branch June 27, 2023 19:41
Comment on lines +26733 to +26735
if match_link_attributes then
matching_content = matching_content * Cg(Ct(parsers.attributes^-1), "attributes")
end
Copy link
Owner Author

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.

Witiko added a commit that referenced this pull request Jan 6, 2024
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.
@Witiko Witiko mentioned this pull request Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commonmark Related to making the syntax of markdown follow the CommonMark spec feature request lua Related to the Lua interface and implementation technical debt Related to code smells and refactoring
Projects
None yet
2 participants