A mermaid diagram whose directive option wraps onto a second line is published as raw text
Categories
(Developer Infrastructure :: Source Documentation, defect)
Tracking
(firefox158 fixed)
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: dao, Assigned: dao)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
MyST stops parsing a directive's options at the first line that does not begin with a colon, so a wrapped :caption: continuation becomes the start of the directive body. Mermaid then sees prose ahead of the diagram keyword, fails to detect a diagram type, and the page ships the raw markup with the caption truncated to its first line. ./mach doc exits zero and logs nothing, so only a reader who opens the published page sees it.
Bug 2061048 fixed the four diagrams in the IPDL docs by moving their options to the YAML block form, but nothing stops the next author from hitting it -- the indented continuation was valid in reStructuredText, which these pages were converted from.
A build-time check that a mermaid block's body starts with a diagram type would turn this from a published defect into a build failure.
| Assignee | ||
Comment 1•2 months ago
|
||
None of the tree's ninety-one mermaid blocks trips the check, and wrapping a caption again in browser/components/urlbar/docs/lifetime.md fails the build.
| Assignee | ||
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Comment 3•2 months ago
|
||
| bugherder | ||
Description
•