# Markdown in Hyperfile

> Hyperfile Markdown is GitHub Flavored Markdown plus Hyperfile's own extensions — charts, signature fields, callouts and more — each with its syntax, examples, common mistakes and JSON Schema.

Every Markdown file in Hyperfile is GitHub Flavored Markdown, plus the extensions below. Agents read the same text through the `markdown_syntax` tool, and `lint_file` checks a file against it.

## basics

Full GitHub Flavored Markdown, as GitHub renders it, plus the extensions markdown\_syntax lists.

### Syntax

Markdown here is CommonMark plus full GitHub Flavored Markdown, as GitHub renders it\: tables, task lists (- \[ \] and - \[x\]), strikethrough (\~\~text\~\~ or \~text\~) and autolinks (bare https\:// and www. addresses and email addresses). Write it as you would for GitHub.

- A single newline inside a paragraph joins the lines with a space. Write a hard line break as a backslash (\\) at the end of the line, as Rich mode does; two trailing spaces also work but are invisible, and edits and formatters drop them.
- Link and embed other files by relative path, like \[Plan\](./plan.md) or \!\[Logo\](../images/logo.png) (see links).
- Raw HTML is sanitized\: scripts, event handlers, \<style\> elements and some other elements and attributes are removed.
- An image alone on its line is centred; to set it at a side, write it as \<p align="right"\>\<img src="…"\>\</p\>, or give an \<img\> on a line of its own align="left".

GitHub's own extras work as on GitHub\: footnotes, math, \`\`\`mermaid diagrams, emoji shortcodes and alerts (\> \[\!NOTE\]).

### Example

````markdown
# Launch checklist

| Task | Owner | Done |
| :--- | :---: | ---: |
| Write the post | Sam | yes |
| ~~Book the venue~~ | Jo | n/a |

- [x] Draft reviewed
- [ ] Published

Questions go to team@acme.com or https://acme.com/help.\
This line follows a hard break.
````

### Common mistakes

A code block left unclosed turns the rest of the file into code.

Wrong:

````markdown
```ts
const a = 1

More text.
````

Right:

````markdown
```ts
const a = 1
```

More text.
````

A reference link needs its label defined, or it renders as literal text.

Wrong:

````markdown
See [the plan][plan].
````

Right:

````markdown
See [the plan][plan].

[plan]: ./plan.md
````

### Lint rules

Rules: fence, reference

## Extensions

- [chart](#chart): A \`\`\`chart block draws a chart from data written in the block or from a data file in the filesystem.
- [signature](#signature): A \`\`\`signature block, or an inline \:sign\[…\] directive, places a signature field that an exported PDF makes fillable.
- [callout](#callout): A GitHub alert (\> \[\!NOTE\]) that can also carry its own title after the mark\: \> \[\!WARNING\] Back up first.
- [code-fence](#code-fence): A fenced code block can carry a title, a caption and line numbers in its info string\: \`\`\`ts title="main.ts" line-numbers.
- [page-break](#page-break): An HTML comment of dashes on its own line, \<\!-- --- --\>, starts a new page when the file is printed or exported to PDF.
- [frontmatter](#frontmatter): A YAML block between --- lines at the very top of a file; kept in the file and not shown in the preview.
- [links](#links): Link and embed other files by relative path, and link to a heading by its \#slug, as GitHub does.
- [tooltip](#tooltip): Raw HTML with a data-tooltip attribute shows the app's tooltip on hover and keyboard focus.
- [footnotes](#footnotes): Footnotes as on GitHub\: \[^1\] in the text, \[^1\]\: the note on a line of its own.
- [math](#math): TeX math as on GitHub\: \$…\$ inline, \$\$…\$\$ or a \`\`\`math block for display.
- [mermaid](#mermaid): Mermaid diagrams as on GitHub\: a \`\`\`mermaid block.
- [emoji](#emoji): Emoji shortcodes as on GitHub\: \:tada\: draws 🎉.

### chart

A \`\`\`chart block draws a chart from data written in the block or from a data file in the filesystem.

#### Syntax

The block body is YAML or JSON in one of three forms\:
- Quick form\: sources, x and y, plus optional type, title, description, options, width and height. type is line, bar, scatter, pie, doughnut, area (line when left out). x and y always start with a source name, like sales.Month; y is one reference or a list of them. x and each y select one column, or one row read across; for scatter they pair into points.
- Full form\: a Chart.js config with type (line, bar, scatter, bubble, pie, doughnut, polarArea, radar) and data. References go at data.labels and at each dataset's data, as one reference or a list whose columns are joined in order. data.labels and a dataset's data select one column, or one row read across, except a scatter or bubble dataset's, which selects two or three columns\: x, y and, for bubble, r. Everything else goes to Chart.js as written, so options that need a function are not possible. sources is needed only when data uses references. In either form description, a sentence or two on what the chart shows, is its alt text in the PDF export, and the full form does not pass it to Chart.js.
- File form\: the body is only a path to a .yaml, .yml or .json chart file holding either form (at most 1 MB). Paths inside it are relative to that file.

sources names each table once. A source is one of\:
- a path to a csv, tsv, xlsx, xls, json, jsonl file, relative to the document (or to the chart file, for a chart file) with ./ or ../, or from the filesystem root, like /data/sales.csv. A plain path, not a URL\: %, \# and ? are ordinary characters.
- a map with path and optional sheet (a workbook sheet by name, or number from 1) and header\: false (no header row; columns are named A, B, C…);
- the data itself\: columns ({ Month\: \[Jan, Feb\], Total\: \[1500, 1900\] }, every list the same length), rows as maps (\[{ Month\: Jan, Total\: 1500 }\]), or rows as lists after a header row (\[\[Month, Total\], \[Jan, 1500\]\]). Any of these may sit under a columns or rows key, which a column named path, sheet, header, rows or columns needs.

A source holds a path or data, never both. A chart writes no more values across its sources than its text has characters, where a row that leaves a column out still fills it; put more in a data file.

References\: sales (the whole table), sales.Revenue (a column by its header), sales\["Unit Price"\] (a header with spaces, dots or brackets), forecast.FY26.Revenue (a sheet, then a column), sales\[B\] and sales\[A2\:A13\] (spreadsheet ranges; the header row is never data), sales\[\:,0\] and sales\[-12\:,1\] (zero-based \[rows, columns\] slices over the data rows). Write a list of references in block form, one "- item" per line\: inside a short \[a, b\] list, the \[ and , in a reference break the YAML.

Size\: 600px wide and half as tall, or 400px square for pie, doughnut, polarArea, radar, centred and never wider than the text column. width must be a number of pixels or a length in px, rem, em or %, such as 480, 480px, 30rem or 80%; height must be a number of pixels or a length in px, rem or em, such as 300, 300px or 20rem. Give one and the other follows the chart's shape; give both for exactly that box. In the full form width and height are not passed to Chart.js.

#### Examples

````markdown
```chart
type: bar
sources:
  sales:
    Month: [Jan, Feb, Mar]
    Total: [1500, 1900, 1700]
x: sales.Month
y: sales.Total
```
````

````markdown
```chart
type: line
title: Visits and signups
sources:
  web:
    - { Week: W1, Visits: 120, Signups: 8 }
    - { Week: W2, Visits: 180, Signups: 11 }
    - { Week: W3, Visits: 150, Signups: 9 }
x: web.Week
y:
  - web.Visits
  - web.Signups
```
````

````markdown
```chart
type: pie
sources:
  share:
    - [Region, Revenue]
    - [North, 42]
    - [South, 31]
    - [West, 27]
x: share.Region
y: share.Revenue
width: 20rem
```
````

````markdown
```chart
type: bar
data:
  labels: [Jan, Feb, Mar]
  datasets:
    - label: Total
      data: [1500, 1900, 1700]
options:
  plugins:
    legend:
      position: bottom
```
````

````markdown
```chart
type: line
sources:
  sales: ../data/sales.csv
  forecast:
    path: ../data/forecast.xlsx
    sheet: FY26
data:
  labels: sales.Month
  datasets:
    - label: Revenue
      data: sales.Revenue
    - label: Forecast
      data: forecast[C2:C13]
width: 80%
```
````

````markdown
```chart
../charts/sales.chart.yaml
```
````

#### Common mistakes

x and y always start with a source name.

Wrong:

````markdown
```chart
type: bar
sources:
  sales:
    Month: [Jan, Feb, Mar]
    Total: [1500, 1900, 1700]
x: Month
y: Total
```
````

Right:

````markdown
```chart
type: bar
sources:
  sales:
    Month: [Jan, Feb, Mar]
    Total: [1500, 1900, 1700]
x: sales.Month
y: sales.Total
```
````

A reference needs a source to read; write the values as lists instead, or add sources.

Wrong:

````markdown
```chart
type: bar
data:
  labels: sales.Month
  datasets:
    - label: Total
      data: sales.Total
```
````

Right:

````markdown
```chart
type: bar
sources:
  sales:
    Month: [Jan, Feb, Mar]
    Total: [1500, 1900, 1700]
data:
  labels: sales.Month
  datasets:
    - label: Total
      data: sales.Total
```
````

Every column holds the same number of values.

Wrong:

````markdown
```chart
type: bar
sources:
  sales:
    Month: [Jan, Feb, Mar]
    Total: [1500, 1900]
x: sales.Month
y: sales.Total
```
````

Right:

````markdown
```chart
type: bar
sources:
  sales:
    Month: [Jan, Feb, Mar]
    Total: [1500, 1900, 1700]
x: sales.Month
y: sales.Total
```
````

A source holds a path or data, never both.

Wrong:

````markdown
```chart
type: bar
sources:
  sales:
    path: ./sales.csv
    columns:
      Month: [Jan, Feb]
      Total: [1500, 1900]
x: sales.Month
y: sales.Total
```
````

Right:

````markdown
```chart
type: bar
sources:
  sales:
    columns:
      Month: [Jan, Feb]
      Total: [1500, 1900]
x: sales.Month
y: sales.Total
```
````

A source is a file in this filesystem (path) or data written in; there is no url.

Wrong:

````markdown
```chart
type: bar
sources:
  sales:
    url: https://example.com/sales.csv
x: sales.Month
y: sales.Total
```
````

Right:

````markdown
```chart
type: bar
sources:
  sales:
    path: ./sales.csv
x: sales.Month
y: sales.Total
```
````

The quick form's types are line, bar, scatter, pie, doughnut, area.

Wrong:

````markdown
```chart
type: column
sources:
  sales:
    Month: [Jan, Feb, Mar]
    Total: [1500, 1900, 1700]
x: sales.Month
y: sales.Total
```
````

Right:

````markdown
```chart
type: bar
sources:
  sales:
    Month: [Jan, Feb, Mar]
    Total: [1500, 1900, 1700]
x: sales.Month
y: sales.Total
```
````

width takes pixels or px, rem, em or %; height takes no %.

Wrong:

````markdown
```chart
type: bar
sources:
  sales:
    Month: [Jan, Feb, Mar]
    Total: [1500, 1900, 1700]
x: sales.Month
y: sales.Total
width: 50vw
```
````

Right:

````markdown
```chart
type: bar
sources:
  sales:
    Month: [Jan, Feb, Mar]
    Total: [1500, 1900, 1700]
x: sales.Month
y: sales.Total
width: 50%
```
````

A reference holding \[ breaks a short \[a, b\] list; write the list in block form.

Wrong:

````markdown
```chart
type: line
sources:
  sales: ./sales.csv
x: sales[A]
y: [sales[B], sales[C]]
```
````

Right:

````markdown
```chart
type: line
sources:
  sales: ./sales.csv
x: sales[A]
y:
  - sales[B]
  - sales[C]
```
````

datasets belongs to the full form, under data; the quick form takes x and y.

Wrong:

````markdown
```chart
type: bar
sources:
  sales:
    Month: [Jan, Feb, Mar]
    Total: [1500, 1900, 1700]
x: sales.Month
y: sales.Total
datasets:
  - label: Total
```
````

Right:

````markdown
```chart
type: bar
sources:
  sales:
    Month: [Jan, Feb, Mar]
    Total: [1500, 1900, 1700]
data:
  labels: sales.Month
  datasets:
    - label: Total
      data: sales.Total
```
````

#### Lint rules

Rules: chart

#### JSON Schema

Download: [chart.schema.json](https://hyperfile.io/schemas/chart.schema.json)

### signature

A \`\`\`signature block, or an inline \:sign\[…\] directive, places a signature field that an exported PDF makes fillable.

#### Syntax

A \`\`\`signature block places a signature line that an exported PDF turns into a fillable signature field. Its body is a YAML map of signer, label, date, name, and no other keys\:
- signer (required) is the email address of the person who signs, and keys the fields; write one block per signature. Only that person, signed in with that address, can sign the fields; a signer that is not an email address, such as Client, still places them, but nobody can sign them.
- label (optional) is the caption under the line; without it the signer is shown.
- date\: true and name\: true add a date box and a printed-name box beside it.

To put a field inside a sentence or a table cell, write a directive as plain text, never in code\: \:sign\[jane@acme.com\] (signature), \:initials\[jane@acme.com\] (initials), \:date\[jane@acme.com\] (date), \:name\[jane@acme.com\] (printed name). A directive starts after a space, an opening ( or a quote, or straight after closing bold or italic, as in \*\*Signed\:\*\*\:sign\[jane@acme.com\]. Inside square brackets or link text it is not a field, nor in a table cell past the header's columns, and directly followed by ( or \[ it reads as a link, so put a space after it.

The bracket text must match that person's signer as their signature block or their \:sign directive writes it, since their fields are grouped by it; matching ignores extra spaces but not case. A signer, in a block or a directive, is at most 256 characters and cannot contain \` \* \~ \[ \] \< \> \\ \|, a \_ not between two letters or digits, or a web address (\:// or www., except after the first character of an email address). Initials are filled when their person signs, so initials need a signature for the same person in the document.

You place signature fields and never sign them\: people sign them online or in the exported PDF. There is no other signature or form-field syntax — no {{...}} templates, no HTML fields — so never invent one, and when asked for a form that does not exist, say so.

#### Examples

````markdown
```signature
signer: jane@acme.com
label: Authorised signatory
date: true
name: true
```
````

````markdown
| Party | Signature | Date |
| --- | --- | --- |
| Acme Ltd | :sign[jane@acme.com] | :date[jane@acme.com] |
| Client | :sign[sam@client.com] | :date[sam@client.com] |

Initial each page: :initials[jane@acme.com] :initials[sam@client.com]
````

````markdown
I agree to the terms above.

```signature
signer: sam@client.com
date: true
```

**Initials:**:initials[sam@client.com]
````

#### Common mistakes

The block accepts only signer, label, date and name.

Wrong:

````markdown
```signature
signer: jane@acme.com
dates: true
```
````

Right:

````markdown
```signature
signer: jane@acme.com
date: true
```
````

Every block needs a signer.

Wrong:

````markdown
```signature
label: Director
```
````

Right:

````markdown
```signature
signer: jane@acme.com
label: Director
```
````

date and name are true or false.

Wrong:

````markdown
```signature
signer: jane@acme.com
date: yes please
```
````

Right:

````markdown
```signature
signer: jane@acme.com
date: true
```
````

A signer that is not an email address places the field, but nobody can sign it; put the role in label.

Wrong:

````markdown
```signature
signer: Client
```
````

Right:

````markdown
```signature
signer: client@acme.com
label: Client
```
````

A directive names its signer inside the brackets.

Wrong:

````markdown
Sign here: :sign[]
````

Right:

````markdown
Sign here: :sign[jane@acme.com]
````

Initials are filled when their person signs, so that person needs a signature in the document.

Wrong:

````markdown
Initial here: :initials[jane@acme.com]
````

Right:

````markdown
Initial here: :initials[jane@acme.com]

Signed: :sign[jane@acme.com]
````

Directly followed by ( or \[, a directive reads as a link.

Wrong:

````markdown
Signed: :sign[jane@acme.com](on behalf of Acme)
````

Right:

````markdown
Signed: :sign[jane@acme.com] (on behalf of Acme)
````

Inside square brackets or link text a directive is not a field.

Wrong:

````markdown
[Sign here :sign[jane@acme.com]]
````

Right:

````markdown
Sign here: :sign[jane@acme.com]
````

#### Lint rules

Rules: signature

#### JSON Schema

Download: [signature.schema.json](https://hyperfile.io/schemas/signature.schema.json)

### callout

A GitHub alert (\> \[\!NOTE\]) that can also carry its own title after the mark\: \> \[\!WARNING\] Back up first.

#### Syntax

A blockquote whose first line is \[\!TYPE\] is a callout box. TYPE is NOTE, TIP, IMPORTANT, WARNING, CAUTION, in any case. Without a title the box is headed by the type's name, as on GitHub.

A custom title can follow the mark on the same line, as Obsidian writes it\: \> \[\!TIP\] Faster uploads. The title is plain text\: Markdown in it is not formatted. GitHub shows a titled first line as an ordinary quote, so a file meant for GitHub too should leave the title out.

The lines after the first are the body, each starting with \>, and are ordinary Markdown. Any other first line, an unknown type included, leaves a plain blockquote.

#### Examples

````markdown
> [!NOTE]
> Uploads resume where they stopped.
````

````markdown
> [!WARNING] Back up first
> Deleting a filesystem is permanent.
>
> - Download anything you need
> - Then delete
````

#### Common mistakes

The types are NOTE, TIP, IMPORTANT, WARNING, CAUTION.

Wrong:

````markdown
> [!DANGER] Careful
> This cannot be undone.
````

Right:

````markdown
> [!CAUTION] Careful
> This cannot be undone.
````

#### Lint rules

Rules: alert

### code-fence

A fenced code block can carry a title, a caption and line numbers in its info string\: \`\`\`ts title="main.ts" line-numbers.

#### Syntax

The first word of the info string is the language, which picks the highlighting. After it come attributes, separated by spaces, each a key with an optional =value; a value with spaces goes in double or single quotes.
- title="main.ts" heads the block in place of the language name.
- caption="Entry point" adds a caption under the block.
- line-numbers, linenumbers, showlinenumbers (any of them, any case) numbers the lines; =false turns them off.

A key written twice takes its last value. Any other key does nothing, and the lint flags it. On a chart, mermaid, signature or math block no attribute does anything, since the block is drawn from its body.

#### Examples

````markdown
```ts title="main.ts" line-numbers
import { start } from './server'

start()
```
````

````markdown
```sh caption='Run from the repository root'
pnpm install
```
````

#### Common mistakes

Only title, caption and the line-number keys are attributes; a misspelled key does nothing.

Wrong:

````markdown
```ts titel="main.ts"
start()
```
````

Right:

````markdown
```ts title="main.ts"
start()
```
````

An unquoted value ends at the first space.

Wrong:

````markdown
```ts title=Entry point
start()
```
````

Right:

````markdown
```ts title="Entry point"
start()
```
````

A quote that never closes leaves the title empty.

Wrong:

````markdown
```ts title="main.ts
start()
```
````

Right:

````markdown
```ts title="main.ts"
start()
```
````

#### Lint rules

Rules: fence

### page-break

An HTML comment of dashes on its own line, \<\!-- --- --\>, starts a new page when the file is printed or exported to PDF.

#### Syntax

Write \<\!-- --- --\> (three or more dashes) as a line of its own, with a blank line before and after. Other Markdown viewers show nothing for it; in a printed copy or an exported PDF the page breaks there.

A bare --- is a horizontal rule, not a page break. Raw HTML \<div class="page-break"\>\</div\> on a line of its own breaks the page the same way, in a printed copy and in an exported PDF. An exported PDF cannot break inside a line, quote, list, alert, table cell or footnote, so neither form does there.

#### Example

````markdown
# Part one

Text.

<!-- --- -->

# Part two
````

### frontmatter

A YAML block between --- lines at the very top of a file; kept in the file and not shown in the preview.

#### Syntax

Line 1 is ---, then YAML, then a line that is just --- (YAML's ... does not close it). The YAML must be a map of keys, like title\: Notes. The block itself is never drawn.

The PDF export reads title, subtitle, author, date, lang, paper, layout, toc, toc-depth, page-numbers, cover, theme, attachments, numbering, tables, code-blocks, and the preview numbering and tables; a value one of them refuses is flagged. Any other key is the author's own, kept in the file for other tools.

It must close within the first 100,000 characters, or it renders as text. Only a block that starts on line 1 is frontmatter.

#### Example

````markdown
---
title: Quarterly report
tags: [finance, q3]
---

# Quarterly report
````

#### Common mistakes

The block needs a closing --- line.

Wrong:

````markdown
---
title: Notes

# Notes
````

Right:

````markdown
---
title: Notes
---

# Notes
````

Only --- closes the block.

Wrong:

````markdown
---
title: Notes
...

# Notes
````

Right:

````markdown
---
title: Notes
---

# Notes
````

The block is YAML and must parse.

Wrong:

````markdown
---
tags: [finance, q3
---

# Notes
````

Right:

````markdown
---
tags: [finance, q3]
---

# Notes
````

#### Lint rules

Rules: frontmatter

### links

Link and embed other files by relative path, and link to a heading by its \#slug, as GitHub does.

#### Syntax

A link or image whose target has no scheme names a file in this filesystem\: relative to the Markdown file (./notes.md, ../images/chart.png) or from the top of the filesystem (/docs/guide.md). In the preview a link opens that file and an image shows it. Write a target with spaces as %20 or inside \<\>\: \[Plan\](\<./Q3 plan.md\>). A \#section or ?query after the path is ignored when finding the file.

Every heading gets an id by GitHub's rule\: lowercased, every character dropped that is not a letter, mark, number, space, - or connecting punctuation such as \_ (so emoji and other punctuation go), then each space made a -. A repeated heading gets -1, -2… on its second and later copies. Link to one as \[Setup\](\#setup) in the same file, or \[Setup\](./guide.md\#setup) in another. Link to raw HTML by its id (\<a id="intro"\>\</a\>, \[Intro\](\#intro)). A \<a name\> is a working target too, in both the preview and the PDF export (\<a name="intro"\>\</a\>, \[Intro\](\#intro)); a name on any other element is not. The lint checks every \#anchor in the same file.

#### Example

````markdown
# Setup steps

See [the guide](./guide.md), its [install section](./guide.md#install), or [the steps above](#setup-steps).

![Architecture](../images/architecture.png)
````

#### Common mistakes

A heading links by its slug, which is lowercase.

Wrong:

````markdown
# Setup Steps

See [the steps](#Setup-Steps).
````

Right:

````markdown
# Setup Steps

See [the steps](#setup-steps).
````

The slug drops punctuation.

Wrong:

````markdown
## Q&A

See [the answers](#q&a).
````

Right:

````markdown
## Q&A

See [the answers](#qa).
````

A repeated heading gets -1 on its second copy, -2 on its third.

Wrong:

````markdown
## Notes

## Notes

See [the second notes](#notes-2).
````

Right:

````markdown
## Notes

## Notes

See [the second notes](#notes-1).
````

#### Lint rules

Rules: link, image

### tooltip

Raw HTML with a data-tooltip attribute shows the app's tooltip on hover and keyboard focus.

#### Syntax

Put data-tooltip="text" on an element of raw HTML, such as a \<span\> or \<abbr\>, and the rendered Markdown shows that text in a styled tooltip when the element is hovered or focused. data-tooltip-placement picks the side\: top, top-start, top-end, right, right-start, right-end, bottom, bottom-start, bottom-end, left, left-start, left-end; anything else, or none, is top.

The text is shown as plain text, never as markup. Printed or exported copies show no tooltip, and other Markdown viewers ignore the attribute, so keep the meaning in the text itself too.

#### Examples

````markdown
Revenue grew 12% <abbr data-tooltip="Year over year, in constant currency">YoY</abbr>.
````

````markdown
<span data-tooltip="Approved by finance on 3 March" data-tooltip-placement="bottom">Approved</span>
````

### footnotes

Footnotes as on GitHub\: \[^1\] in the text, \[^1\]\: the note on a line of its own.

#### Syntax

Write \[^label\] where the note is cited and \[^label\]\: text on a line of its own anywhere in the file; notes are numbered in order of first citation and listed at the end, as on GitHub.

#### Example

````markdown
Uploads stream large files.[^stream]

[^stream]: Peak memory stays fixed whatever the file size.
````

#### Lint rules

Rules: footnote

### math

TeX math as on GitHub\: \$…\$ inline, \$\$…\$\$ or a \`\`\`math block for display.

#### Syntax

As on GitHub\: \$x^2\$ or \$\`x^2\`\$ inline, \$\$ on lines of their own around a display formula, or a \`\`\`math fence. The TeX is never read as Markdown\: the preview draws it with KaTeX, and the PDF export converts it to Typst math, so a formula that converter cannot read is flagged.

#### Examples

````markdown
The area is $\pi r^2$.

$$
\sum_{i=1}^{n} i = \frac{n(n+1)}{2}
$$
````

````markdown
```math
E = mc^2
```
````

#### Lint rules

Rules: math

### mermaid

Mermaid diagrams as on GitHub\: a \`\`\`mermaid block.

#### Syntax

A \`\`\`mermaid fence draws its diagram in the preview, as on GitHub; any Mermaid diagram type works. Nothing checks the diagram, so a broken one shows as its source.

#### Example

````markdown
```mermaid
flowchart LR
  Upload --> Index --> Search
```
````

### emoji

Emoji shortcodes as on GitHub\: \:tada\: draws 🎉.

#### Syntax

GitHub's shortcodes, case-sensitive, between colons\: \:tada\:, \:white\_check\_mark\:. A name GitHub does not know stays as text.

#### Example

````markdown
Shipped :tada: and tested :white_check_mark:
````

#### Lint rules

Rules: emoji

<!-- Generated from @hyperfile/markdown/syntax by `pnpm markdown-docs:generate`. Edit the registry, not this file. -->

---

Canonical HTML version: https://hyperfile.io/docs/web/markdown/
