Skip to content

docs(flame): write callouts as containers instead of leaf directives - #525

Merged
gitfromwildan merged 1 commit into
mainfrom
docs/fix-leaf-callouts
Nov 10, 2026
Merged

gitfromwildan merged 1 commit into
mainfrom
docs/fix-leaf-callouts

Conversation

@gitfromwildan

Copy link
Copy Markdown
Member

Summary

Four callouts in the docs were written as a leaf directive followed by a blockquote:

::info{title="First run"}
> Deno may show a freshness/cache warning on first run. …

A leaf directive (::) has no children. remarkDirectiveToMdx gives 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:

<aside role="note">…<span>First run</span><div class="mdx-callout-content"></div></aside>
<blockquote><p>Deno may show a freshness/cache warning on first run. …</p></blockquote>

The formatting guide already says :: is for components without children and callouts are ::: items. The pattern dates back to #347.

Change

Page Callout
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.

  • In the second installation callout, the two lines after the > line ("This step precompiles…", "In a published npm package…") were lazy continuation lines of the blockquote. They move into the callout too.
  • On the docs index, only the "Benchmark setup" paragraph moves into the warning. The two mermaid charts and the note after them stay outside it, where they rendered before.

Verification

  • All three pages were rendered through flame's compileMdx → renderToStaticMarkup. Every callout has its text in .mdx-callout-content, no blockquote is left behind, and no :: text leaks into the output.
  • git grep finds no other leaf callout (::info, ::tip, ::warning, ::danger, ::success, ::note) in the repo. The template only uses ::youtube, which is a real leaf.
  • Prettier is clean. docs/ is not in the published @docubook/flame files, so there is no changeset.

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.
@vercel

vercel Bot commented Nov 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docu Ignored Ignored Nov 10, 2026 5:07pm UTC

@gitfromwildan gitfromwildan self-assigned this Nov 10, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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.mdx callouts: both First run callouts are now :::info containers. The second one correctly takes in the two former lazy-continuation lines, which used to render inside the stray blockquote.
  • introduction.mdx callout: The MDX authors pointed here is now a :::info container, and its text is unchanged.
  • index.mdx warning: 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.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@gitfromwildan
gitfromwildan merged commit b36ac0e into main Nov 10, 2026
15 checks passed
@gitfromwildan
gitfromwildan deleted the docs/fix-leaf-callouts branch November 10, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant