docs: clarify blank-line rule in admonition multi-line examples#3468
docs: clarify blank-line rule in admonition multi-line examples#3468cotti wants to merge 2 commits into
Conversation
Fix the Plain admonition example so it actually renders multiple lines, and spell out that paragraphs inside an admonition must be separated by a blank line. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Too much diff to scan? Review this PR in Change Stack to start with the highest-impact changes. 📝 WalkthroughWalkthroughThis PR updates the admonitions documentation to clarify multi-line formatting support. The Plain admonition example is expanded by adding a sample content line ("This is a plain callout.") to both the rendered output example and the corresponding Markdown code block, demonstrating how multi-line content works in practice. A minor trailing whitespace adjustment is also made to the Basic admonitions intro text. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches✨ Simplify code
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 |
Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/syntax/admonitions.md`:
- Around line 7-8: The intro to the Admonitions doc is missing the explicit rule
that paragraphs inside an admonition must be separated by a blank line; update
the sentence immediately after "Admonitions can span multiple lines and support
inline formatting." to add a clear rule like "Separate paragraphs inside an
admonition with a blank line." so readers know to insert an empty line between
paragraphs; keep the wording concise and mirror the tone of the existing intro
so it reads as a single, authoritative rule.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 3cf6a341-f7d5-431c-9a88-fa014f479f94
📒 Files selected for processing (1)
docs/syntax/admonitions.md
| Admonitions can span multiple lines and support inline formatting. | ||
|
|
There was a problem hiding this comment.
Add the explicit blank-line rule to match the intended behavior
The new example is fixed, but the intro still doesn’t state the key rule: separate paragraphs inside an admonition with a blank line. Without that sentence, the original confusion from #3131 can still recur.
Suggested doc patch
-Admonitions can span multiple lines and support inline formatting.
+Admonitions can span multiple lines and support inline formatting.
+To create multiple paragraphs inside an admonition, separate them with a blank line.Based on learnings: "Update /docs/ whenever Markdown syntax or rendering behaviour changes."
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| Admonitions can span multiple lines and support inline formatting. | |
| Admonitions can span multiple lines and support inline formatting. | |
| To create multiple paragraphs inside an admonition, separate them with a blank line. | |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/syntax/admonitions.md` around lines 7 - 8, The intro to the Admonitions
doc is missing the explicit rule that paragraphs inside an admonition must be
separated by a blank line; update the sentence immediately after "Admonitions
can span multiple lines and support inline formatting." to add a clear rule like
"Separate paragraphs inside an admonition with a blank line." so readers know to
insert an empty line between paragraphs; keep the wording concise and mirror the
tone of the existing intro so it reads as a single, authoritative rule.
Why
Closes #3131. The admonitions page claims callouts "can span multiple lines and support inline formatting," but the Plain example reproduced the exact misleading pattern that confused authors: its content reads "It can span multiple lines…" yet sits on a single line with no blank line, so it renders as one paragraph. The page also never stated the standard Markdown rule that adjacent lines collapse into one paragraph.
#3129 already corrected the Note example; this finishes the remaining gap.
What
Made with Cursor