forked from commonmark/cmark
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Sync in changes made to cmark-gfm after 2021-08-01 #29
Merged
Merged
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
74631f8
Copied over the actions CI workflows that @jgm added in commonmark/cm…
phillmv 7346f8d
Turns out we don't have a lint task in our Makefile (yet).
phillmv 2b2ffaf
Let's drop the fuzzer for now, looks like we have to set something up…
phillmv 4e0a81f
Make normalize test compatible with python 3.8
keith-packard 4bab14a
Removed outdated build status badges.
phillmv 4a7186e
Run ci build only on push, thanks.
phillmv 71e27f2
Footnotes now support being nested, i.e. a footnote may reference ano…
phillmv 1f026ef
Fix for footnotes being confused for link references.
phillmv bb117ff
Fix for when footnote reference labels get broken up into multiple cm…
phillmv bf76871
Fix footnote reference label text, and add multiple backrefs.
phillmv 272c999
Fixed footnote extension test to handle new footnote reference link l…
phillmv 2cb2f7c
Added test example that exercises a single footnote being referenced …
phillmv 8ccdaa7
Converted regression test to expect new footnote ref link labels.
phillmv a0de7d8
Added regression test that exercises nested footnotes.
phillmv 7fa2372
Added test that properly exercises footnotes whose reference labels c…
phillmv 740b987
Added test that exercises whether footnotes are confused for link ref…
phillmv 582eb8a
Merge branch 'footnotes-fix-confused-for-link-reference' into all-foo…
phillmv c464de3
Merge branch 'footnotes-fix-when-across-multiple-nodes' into all-foot…
phillmv 1aabfa3
Merge branch 'footnotes-fix-fnref-label-and-backrefs' into all-footno…
phillmv 7b5d45d
Adapted existing regression tests to conform to new footnote ref label.
phillmv fdd7851
Added Actions CI badge.
phillmv 0277638
Removed redundant 'import cgi' from normalize.py
phillmv fcf8b73
Merge pull request #226 from github/add-ci
phillmv 993e869
Merge branch 'master' into fix-footnotes-nested-linkrefs-autolinker
phillmv b790eca
Bumped version to 0.29.0.gfm.1
phillmv 32ffc77
Renamed cmark_node->footnote.{ix,count} to {ref_ix,def_count} to make…
phillmv 1717040
Added cmark_node.parent_footnote_def, removed usage of 'user_data', m…
phillmv 984b5ea
Merge branch 'master' into fix-footnotes-plus-fix-fnref-label-and-bac…
phillmv 32002ec
replaced strbuf_put with strbuf_puts
phillmv 6e186b3
WIP: what if we only free the nodes after calling process_emphasis?
phillmv d3a819c
Fix & regression test for use-after-free introduced in bb117ffa7f0dcc…
phillmv a1d171a
Fix for use-after-free bug introduced in 71e27f25f11c9a34f0532dba4599…
phillmv 98a2544
Merge branch 'fix-footnotes-nested-linkrefs-autolinker' into fix-foot…
phillmv 0f98e8a
Merge pull request #231 from github/bump-version-to-0290gfm1
phillmv d43ae4b
By default, always escape footnote hrefs when emitting html.
phillmv a86bbc5
added extension test that verifies that footnote labels get href esca…
phillmv 586a22d
literal->data is probably NULL terminated, but just in case let's che…
phillmv de6feae
Added check for underflows when duping footnote ref literal.
phillmv 5790bf2
Merge branch 'fix-footnotes-nested-linkrefs-autolinker' into fix-foot…
phillmv 4bf57ea
Swapped calloc argument order, so that we use the function appropriat…
phillmv 8474289
Swapped : for - when emitting html footnote ref labels.
phillmv b6e462f
Add data attributes for footnotes
talum eb5b719
Merge pull request #229 from github/fix-footnotes-nested-linkrefs-aut…
phillmv d7e50f0
Merge pull request #230 from github/fix-footnotes-plus-fix-fnref-labe…
phillmv 9eb8858
Merge pull request #234 from github/add-attributes-to-footnotes
phillmv d86bddf
Bump version to 0.29.0.gfm.2
phillmv 766f161
Merge pull request #235 from github/bump-version-to-0290gfm2
phillmv ac80f7b
prevent integer overflow in row_from_string
anticomputer ff164f1
Bump version to `0.29.0.gfm.3`
phillmv cf7577d
Merge pull request from GHSA-mc3g-88wq-6f4x
phillmv 131078b
Merge remote-tracking branch 'github/master' into QuietMisdreavus/syn…
QuietMisdreavus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
name: CI tests | ||
|
||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
linux: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
cmake_opts: | ||
- '-DCMARK_SHARED=ON' | ||
- '' | ||
compiler: | ||
- c: 'clang' | ||
cpp: 'clang++' | ||
- c: 'gcc' | ||
cpp: 'g++' | ||
env: | ||
CMAKE_OPTIONS: ${{ matrix.cmake_opts }} | ||
CC: ${{ matrix.compiler.c }} | ||
CXX: ${{ matrix.compiler.cpp }} | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install valgrind | ||
run: | | ||
sudo apt install -y valgrind | ||
- name: Build and test | ||
run: | | ||
make | ||
make test | ||
make leakcheck | ||
|
||
macos: | ||
|
||
runs-on: macOS-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
cmake_opts: | ||
- '-DCMARK_SHARED=ON' | ||
- '' | ||
compiler: | ||
- c: 'clang' | ||
cpp: 'clang++' | ||
- c: 'gcc' | ||
cpp: 'g++' | ||
env: | ||
CMAKE_OPTIONS: ${{ matrix.cmake_opts }} | ||
CC: ${{ matrix.compiler.c }} | ||
CXX: ${{ matrix.compiler.cpp }} | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Build and test | ||
env: | ||
CMAKE_OPTIONS: -DCMARK_SHARED=OFF | ||
run: | | ||
make | ||
make test | ||
|
||
windows: | ||
|
||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
cmake_opts: | ||
- '-DCMARK_SHARED=ON' | ||
- '' | ||
env: | ||
CMAKE_OPTIONS: ${{ matrix.cmake_opts }} | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
- name: Build and test | ||
run: | | ||
chcp 65001 | ||
nmake.exe /nologo /f Makefile.nmake test | ||
shell: cmd |
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
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.
does that make sense on macOS
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.
If gcc is available on macOS in GitHub Actions (i assume so since this is an upstream change), i guess they want to make sure to test it. However, this doesn't affect our fork, since we don't use GitHub Actions.