Repository navigation
fix(kirari): end Markdown headings before the line break - #13
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
2dc5ca0 to
2990773
Compare
2990773 to
7ebe2af
Compare
|
@coderabbitai review |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
✅ Action performedReview finished.
|
ATX and setext heading tokens stop at the end of the line; the line break is emitted as text. Line-based renderers no longer need to split heading tokens, and heading styles stop at the line end. Closes #6
7ebe2af to
cfa00b7
Compare
What and why
Markdown heading tokens included the trailing line break:
# Title\nnextproduced"# Title\n":heading. No other token ends with a newline, so line-based renderers had to split the heading, and a background or decoration on.kirari-headingran past the end of the line.ATX (
# Title) and setext (Title/=====) headings now end at the end of the line, and the line break (\n,\r\n, or\r) is a separate text token:This applies to the
markdownlanguage and tocreateMarkdown, which uses the same tokenizer outside fences. No public API change.Stacked on #12.
Closes #6
Validation
bun run checkpasses.common-formats.test.tsandmarkdown-fences.test.ts, plus new cases for the issue input and CRLF setext headings.Checklist
bun run checkpassesbunx changeset), or not needed for docs, tests, or internal changesSummary by CodeRabbit