Repository navigation
Fix #1376: preserve GitHub alert blockquotes - #3740
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 47 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f7f2de7b5f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
…59-1376-alert-blockquotes # Conflicts: # pkgs/id/src/web/markdown.rs
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1fb0e7eebd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
| if fence.feed(fence_feed_line(rest)) { | ||
| fence_depth = Some(depth); | ||
| output.push_str(line); | ||
| at_block_start = false; | ||
| continue; |
There was a problem hiding this comment.
Record literal blocks as quote content before skipping them
When a blockquote starts with fenced code or raw HTML and a later paragraph contains [!NOTE] followed by an authored hard break and body text, these early returns leave quote_has_content false. The later marker is consequently unescaped and its hard-break backslash removed. On reload, preserve_github_alert_marker_breaks skips the quote because its first child is not a paragraph, so the marker and body merge onto one line. The fresh evidence beyond the earlier nested-blockquote issue is that literal-block paths bypass the new ancestor-content bookkeeping entirely; mark their quote depth and ancestors as occupied before continuing.
Useful? React with 👍 / 👎.
Summary
Closes #1376.
Evidence
> [!NOTE]followed by its body was flattened to a space, so save output escaped the marker.CARGO_BUILD_JOBS=1 cargo test --manifest-path pkgs/id/Cargo.toml --features web --lib web::markdown— pass (121 tests), including marker fixpoint and non-alert controls.Merge Danger
Door: Two-way
Blast Radius: Low
Changes are limited to the Markdown codec; no editor schema or UI changes.
Need help on this PR? Tag
@codesmith-botwith what you need.