fix(markdown): widen details regex + pad fence with blank lines#622
Conversation
There was a problem hiding this comment.
rainxchzed has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe PR updates the HTML ChangesDetails/Summary HTML Conversion
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Details collapsible from PR #621 only matched when `
` had nothing but whitespace between them. Many READMEs (incl. gkd.li-style) put markup or text in between (newlines plus stripped `` remnants from earlier passes), so the regex skipped them and the fallback `
` → `bold` ran instead — summary turned into a bold heading and body rendered inline expanded.- Gap between tags widened from `\s*` to `.*?` with DOT_MATCHES_ALL so anything in between matches lazily.
- Output padded with `\n\n` before and after the fence so intellij-markdown's parser sees a proper block fence, not inline backticks.
- Compile clean
- Device: open gkd.li-style README — verify `
-
- Improved processing of collapsible content blocks in markdown to ensure consistent and reliable rendering.
-
- Enhanced pattern matching and output formatting for collapsible content elements.

Fix:
Test plan
Details
` renders as collapsed tap-to-expand card.Summary by CodeRabbit
Bug Fixes
Refactor