AI agents (through MCP), the REST API and the Generic Bulk Importer write article content as Markdown. This is the Markdown they use.
The content of updateDraft (and createArticle's optional markdown) is ordinary Markdown (headings, paragraphs, bold, italic, inline code, links, lists, quotes, images and horizontal rules) plus the pieces below. Each one is stored exactly, so reading the content back gives the same Markdown.
Callouts: a quote whose first line is
[!NOTE],[!TIP],[!IMPORTANT]or[!WARNING](GitHub's alert syntax) becomes a callout box of that type, the same as the editor's Callout button:> [!WARNING] > Purging can't be undone.Tables: GitHub-style pipe tables. The first line is the header row; leave every header cell empty for a table without one. Write
<br>for a line break inside a cell and\|for a|in the text.Image descriptions and sizes:
(always describe the image; screen readers read the description aloud). Add{size="small"},{size="medium"}or{size="full"}straight after it to size it, or{decorative}for a purely decorative image with no description.Code boxes: a fenced code block — three backticks (or tildes) on their own line, optionally followed by a language name such as
json,bashorts, the code, then a closing fence — becomes the same code box the editor's Code button makes. The text inside is kept exactly as written: nothing in it is treated as Markdown, links, territory tags or{{...}}syntax, so a code box can safely show HAIMDALL's own syntax as an example. The language name is kept and published as alanguage-…class on the page's<pre><code>. To show three backticks inside a code box, fence it with four or more.Styled text
An unknown id in [[articleId|text]], {{embed:articleId}} or {{file:...}} is rejected, and nothing is saved — same rule for all three.