Repository navigation
Conversation
jgm
added a commit
that referenced
this pull request
Nov 25, 2026
This created problems with indented bullet lists, because subitems didn't line up with the content of teh main item. Obsoletes #665.
Member
|
Fixed in a different way by commit f4eec01 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
cmark_render_commonmark()adds two leading spaces to a first-child nested bullet list even when it continues the enclosing marker on the same line. This makes the parsed parent indentation disagree with the continuation prefix, so the valid-Markdown adjacent-list input in #662 moves content outside its parent on roundtrip. Use a two-character bullet marker consistently across that nested list, guard the optional parent explicitly, and add API regressions for the reported case and later siblings.Verification on Linux, GCC 13.3, CMake and Python 3.12.3:
Commands:
cmake -S . -B build -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug -DSPEC_TESTS=ON,cmake --build build,ctest --test-dir build --output-on-failure. Repeat withBUILD_SHARED_LIBS=OFFfor static.The initial hosted clang-tidy run required an explicit parent guard; the guard-only revision passes the same native checks and 580 unchanged semantic comparisons from that exact remote head. Local clang-tidy, sanitizers, other platforms and real use were not tested; hosted lint must be checked on the new head. Prepared with OpenAI Codex assistance.