Repository navigation
fix(heading): defer nested Table, Hr, and Latex_env blocks in Markdown headings - #157
Merged
Merged
Conversation
|
|
tiensonqin
force-pushed
the
fix/md-heading-nested-blocks
branch
from
November 18, 2026 10:49
e2de0e9 to
3e07a4f
Compare
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.
Summary
When specializing Markdown heading title guards (
md_title_guard,title_aux_p, andtry_parse_md_line), three block parsers present in the originalHeadingchoice list were omitted:Table.parse(- | Header A | Header B |\n | A1 | B1 |\n | A2 | B2 |consumed row 1 into the heading title and promotedA1 | B1to<thead>, breakinglogseq/og'se2e-tests/shui/table.spec.js).Hr.parse(- ---,- ***,- ___consumed the rule as plain heading title text instead ofHorizontal_Rule).Latex_env.parse(- \begin{equation}...\end{equation}only checkedBlock.parse, consuming\begin{equation}into the heading title instead ofLatex_Environment).Restore all three guards and add regression tests in
test/test_markdown.ml.