Skip to article

Getting startedExample

Writing guide

Every element available to write an article: headings, callouts, code, tables, images.

An article is an .mdx file: Markdown, in which you can also place a few components. This guide shows everything available, with the result right below.

Creating an article

Each article exists as two files, one per language, with the same name:

text
content/blog/fr/my-article.mdx
content/blog/en/my-article.mdx

You then add it to the registry content/blog/registry.ts, with its section, title, summary and date. The article title is not written in the file: it comes from the registry.

Headings

Section headings start with ##, subsections with ###. They appear in the right-hand table of contents and act as anchors.

md
## A main section

### A subsection

Paragraphs are separated by a blank line. You can use bold, write inline code, and add internal links or external links: the latter open in a new tab.

A quote goes after a chevron, at the start of a line.

Callouts

Four types of callout draw attention to a piece of information:

mdx
<Callout type="warning" title="Optional title">
  The callout text.
</Callout>

Code blocks

A code block opens and closes with three backticks, followed by the language name. The "Copy" button appears automatically, and long lines scroll horizontally.

ts
export function roundTo(amount: number, step = 5): number {
  return Math.round(amount / step) * step;
}

Tables

ElementSyntaxNote
Section heading## TitleAppears in the table of contents
Callout<Callout>Four types
Image![text](/path.webp)Text width

Images

Images take the width of the text. The text in square brackets describes the image for screen readers; the text in quotes becomes the caption.

Screenshot of the FiscPredict simulatorExample image with a caption

Share the article