Skip to content

feat(lexer): implement CommonMark tab expansion (§2.1)#39

Merged
jmcollin merged 2 commits into
mainfrom
feat/tab-expansion
Jun 1, 2026
Merged

feat(lexer): implement CommonMark tab expansion (§2.1)#39
jmcollin merged 2 commits into
mainfrom
feat/tab-expansion

Conversation

@jmcollin

Copy link
Copy Markdown
Owner

Expand tabs to 4-column stops before indent detection so mixed space+tab prefixes correctly trigger indented code blocks (spec ex 1–2). Fix PATTERN_HORIZONTAL_RULE to allow tab-separated thematic break chars (spec ex 11).

Preserve internal tabs in code block content via stripLeadingColumns.

Fix blockquote inner content to keep trailing spaces so hard line breaks survive re-tokenisation.

Expand tabs to 4-column stops before indent detection so mixed space+tab prefixes correctly trigger indented code blocks (spec ex 1–2). Fix PATTERN_HORIZONTAL_RULE to allow tab-separated thematic break chars (spec ex 11).

Preserve internal tabs in code block content via stripLeadingColumns.

Fix blockquote inner content to keep trailing spaces so hard line breaks survive re-tokenisation.
@jmcollin jmcollin self-assigned this May 31, 2026
@jmcollin jmcollin merged commit fc8808b into main Jun 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant