Repository navigation
docs(flame): write callouts as containers instead of leaf directives - #525
Merged
Merged
Conversation
Four callouts were written as a leaf directive followed by a
blockquote, `::info{title="…"}` then `> text`. A leaf directive has no
children, so each one rendered as an empty callout showing only its
title, with the text in a separate plain blockquote below it.
They are now `:::info{…}` / `:::warning{…}` containers closed with
`:::`, and the text moves inside without the `>` markers. In the
installation page, the two lines that followed the blockquote as lazy
continuation lines go inside the callout too, since they were part of
that blockquote. On the docs index only the "Benchmark setup"
paragraph moves into the warning; the diagrams and the note after it
stay where they were.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Mode: standard. I reviewed the conversion of four leaf callouts (::info or ::warning followed by a > blockquote) into container directives in the flame docs. I found nothing to fix, so the verdict is READY.
installation.mdxcallouts: bothFirst runcallouts are now:::infocontainers. The second one correctly takes in the two former lazy-continuation lines, which used to render inside the stray blockquote.introduction.mdxcallout:The MDX authors pointed hereis now a:::infocontainer, and its text is unchanged.index.mdxwarning: only the benchmark-setup paragraph moves inside:::warning. The mermaid charts after it stay outside the callout, so their layout is unchanged.
I searched every *.md and *.mdx file in the repo for ^\s*::(info|tip|warning|danger|success|note|callout). Nothing matched, so no leaf callouts are left. These are docs-only files outside the published @docubook/flame package contents, so the PR doesn't need a changeset.
claude-opus-5-5 | 𝕏
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Four callouts in the docs were written as a leaf directive followed by a blockquote:
A leaf directive (
::) has no children.remarkDirectiveToMdxgives it an empty child list, so each of these rendered as an empty callout that showed only its title, and the text appeared below it in a separate plain blockquote:The formatting guide already says
::is for components without children and callouts are:::items. The pattern dates back to #347.Change
getting-started/installation.mdx:::info{title="First run"}getting-started/installation.mdx:::info{title="First run (Node.js / Deno only)"}getting-started/introduction.mdx:::info{title="The MDX authors pointed here"}index.mdx:::warning{title="Performance: v1 vs v2"}Each one is now a container closed with
:::, and the text moves inside without the>markers.>line ("This step precompiles…", "In a published npm package…") were lazy continuation lines of the blockquote. They move into the callout too.Verification
compileMdx→renderToStaticMarkup. Every callout has its text in.mdx-callout-content, no blockquote is left behind, and no::text leaks into the output.git grepfinds no other leaf callout (::info,::tip,::warning,::danger,::success,::note) in the repo. The template only uses::youtube, which is a real leaf.docs/is not in the published@docubook/flamefiles, so there is no changeset.