forked from jgm/lunamark
-
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.31.2 #416
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Witiko
added
the
commonmark
Related to making the syntax of markdown follow the CommonMark spec
label
Mar 13, 2024
Witiko
reviewed
Mar 18, 2024
Witiko
reviewed
Mar 18, 2024
Witiko
force-pushed
the
update-commonmark
branch
from
April 1, 2024 11:41
93f1820
to
1522923
Compare
Witiko
force-pushed
the
update-commonmark
branch
from
April 1, 2024 11:52
1522923
to
6708f9a
Compare
Witiko
force-pushed
the
update-commonmark
branch
from
April 1, 2024 13:06
aa024ee
to
f6a4448
Compare
Witiko
force-pushed
the
update-commonmark
branch
from
April 1, 2024 13:12
f6a4448
to
6708f9a
Compare
Witiko
added
the
automerge
This pull request will be automatically merged after continuous integration has succeeded
label
Apr 1, 2024
Witiko
reviewed
Apr 1, 2024
This reduces the memory footprint of `markdown.lua`
This better documents the changes between different CommonMark versions and shows that all test files from CommonMark 0.30 still pass.
Witiko
force-pushed
the
update-commonmark
branch
from
April 1, 2024 13:49
b5cc60b
to
9087fae
Compare
This reduces the memory footprint of `markdown.lua`
Witiko
added a commit
that referenced
this pull request
Apr 3, 2024
Since #416, we have first read all Unicode punctuation characters to a table `punctuation`, then defined `parsers.punctuation` using the table `punctuation`, and then we deleted the table `punctuation`. Since #416, we have also been experiencing steady out-of-memory issues with our capybara runner, as discussed with @TeXhackse earlier today. I have disabled capybara, since it's been having intermittent out-of-memory issues ever since Markdown 3.0.0 and its speed has also lately been an issue. Nevertheless, this indicates a potential cost of the current approach, which may eventually impact our users as well. This PR removes the table `punctuation` directly from the file `UnicodeData.txt` without any intermediate data structure. This should alleviate any memory issues caused by #416.
This was referenced Apr 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
automerge
This pull request will be automatically merged after continuous integration has succeeded
commonmark
Related to making the syntax of markdown follow the CommonMark spec
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #412
Tests that needed parser changes:
raw_html/014.test
--
is now allowed in inline html commentsemphasis_and_strong_emphasis/132.test