Use callouts when a note, recommendation, requirement, or risk needs to stand apart from the normal task flow.
Start a callout with ::: and its type, then close it with another ::: line:
::: note
Use `toc.md` when navigation order matters.
:::
Callout bodies support normal Markdown, including multiple paragraphs, lists, links, and code blocks.
DocInsight provides five callout types:
Type |
Use for |
|---|---|
|
Helpful context that is worth noticing |
|
Optional advice or a faster path |
|
Information readers must know before continuing |
|
A risk that may cause incorrect results, broken output, or other recoverable problems |
|
A risk of data loss, security exposure, or another serious consequence that may be difficult to reverse |
The following examples show the default title and visual treatment for every type.
Use a note for supporting context that helps readers understand the current task.
Note
Use toc.md when navigation order matters.
Use a tip for optional advice, a shortcut, or a more efficient approach.
Tip
Run docinsight check before building to find authoring problems without writing output.
Use an important callout for information readers must know before continuing.
Important
Content entries must be included in the same output target before they can cross-reference each other.
Use a warning when an action may cause incorrect results, broken output, or another problem that requires corrective action.
Warning
Changing mount changes generated output paths and may break existing links.
Use a danger callout when an action may cause data loss, expose private information, or have another serious consequence that is difficult to reverse.
Danger
Do not publish an asset set that contains credentials or other private files.
Use the title attribute when the default title does not describe the message:
::: important title="Before you publish"
Run `docinsight check` and review the selected output target.
:::
DocInsight also recognizes GitHub-style alerts in existing Markdown:
> [!NOTE]
> Use `toc.md` when navigation order matters.
NOTE, TIP, IMPORTANT, and WARNING map to the matching callout types. CAUTION maps to danger. Prefer the native ::: syntax when authoring new content because it supports callout attributes and nested Markdown directly.