Headings and text
The page title, headings and their anchors, line breaks, text styles, escapes, HTML inside a line.
The page title
A level-1 heading that opens the page is its title: Kirbon shows it large at the top, and the sidebar, tabs, search and links use it as the page’s name. Only front matter and HTML comments may come before it.
| In the file | Kirbon shows |
|---|---|
# Release Process on the first line | The title “Release Process” |
Front matter, then # Release Process | “Page properties” above the title “Release Process” |
Release Process with === under it | The title too — the underlined form of # |
A paragraph, then # Release Process | A level-1 heading in the text; the page has no title |
# One, later # Two | “One” is the title, “Two” a level-1 heading |
A page without a title is named after its file in the sidebar, and Visual shows an empty Add a title line at the top: typing there writes # and your text into the file. title: in front matter doesn’t name the page.
Headings
| In the file | Kirbon shows |
|---|---|
## Setup … ###### Notes | Headings of levels 2 to 6 |
Setup with --- under it | A level-2 heading |
## Setup ## | “Setup” — closing #s are hidden |
##Setup | A paragraph “##Setup”: # needs a space after it |
####### Seven | A paragraph: there are only six levels |
## The `deploy` command | A heading with inline code; formatting in headings is shown |
- ## Heading in a list, > ## Heading in a quote | Headings inside the list item and the quote |
Visual’s menus and the / menu make headings 1–4; levels 5 and 6 are shown and kept, and written in Markdown. The Outline lists levels 1–4.
Heading anchors
Every heading gets an anchor, the part of a link after #. Kirbon makes it the way GitHub does: lowercase; letters (any alphabet), numbers, - and _ kept; every space turned into -; everything else — punctuation, symbols, emoji — removed. A second heading with the same text gets -1, a third -2.
| Heading | Anchor |
|---|---|
## Setup | #setup |
## Setup again | #setup-1 |
## C++ & Go: 2024! | #c--go-2024 |
## 13. Финальный чек-лист | #13-финальный-чек-лист |
## Emoji 🚀 here | #emoji--here |
## snake_case and-dash | #snake_case-and-dash |
## The `deploy` **command** | #the-deploy-command |
## Heading {#custom} | #heading-custom — {#…} is part of the text |
Anchors work percent-encoded too (#%D0%B7…). Hover a heading in Visual and click its anchor to copy a link to it.
Only headings are anchors. <a id="…">, <a name="…"> and {#…} attributes don’t create one: the tag is invisible on the page, and a link to it is shown as broken — “No heading “#…” on that page”. Link to the nearest heading instead.
Paragraphs and line breaks
| In the file | Kirbon shows |
|---|---|
| A blank line between lines | A new paragraph |
| A single line break | A space — the lines join into one paragraph |
| Two spaces at the end of a line | A line break inside the paragraph |
\ at the end of a line | A line break |
<br> | A line break |
Quotes, apostrophes and dashes stay as typed: "…" isn’t turned into “…”, nor -- into a dash.
Text styles
| In the file | Kirbon shows |
|---|---|
**bold**, __bold__ | Bold |
*italic*, _italic_ | Italic |
***both*** | Bold italic |
~~gone~~, ~gone~ | Strikethrough — one tilde is enough, as on GitHub |
`code` | Inline code |
`` a ` inside `` | Inline code containing a backtick |
<u>underlined</u> | Underlined text, editable; Visual doesn’t offer underline itself |
Where * and _ stop being emphasis:
| In the file | Kirbon shows |
|---|---|
snake_case_name | Plain text: _ inside a word isn’t emphasis |
foo*bar*baz | “bar” in italics: * inside a word is |
2*3*4 | “3” in italics — write 2 \* 3 \* 4 |
* not * | Plain text: no emphasis with spaces inside the markers |
**unclosed | Plain text with the stars |
Escapes and entities
A backslash before punctuation shows the character itself: \*not italic\*, \# not a heading, 1\. not a list, \[not a link\], \\. Entities show their characters: & &, < <, © ©, © ©, a non-breaking space. When you edit text nearby, Kirbon keeps escapes and entities as you wrote them.
Web addresses
| In the file | Kirbon shows |
|---|---|
<https://example.com> | A link |
https://example.com/path. | A link without the final dot |
www.example.com | A link to http://www.example.com |
http://localhost:3000 | A link |
<team@example.com> | A mail link |
team@example.com, mailto:team@example.com in text | Plain text — write <team@example.com> |
Punctuation at the end of an address and an unmatched ) aren’t part of it, so (see https://example.com) links just the address.
HTML inside a line
| In the file | Kirbon shows |
|---|---|
<br> | A line break |
<u>…</u> | Underlined text |
<img src="…" alt="Logo"> among text | The alt text as a link to the image; in a table cell, the picture, small |
<kbd>K</kbd>, <sup>2</sup>, <sub>x</sub>, <mark>…</mark>, <span style="…">…</span> | The text between the tags, plain; the tags are invisible |
<a href="https://…">site</a> | “site” as plain text — not a link |
<a id="x"></a>, <!-- note --> | Nothing: invisible, kept in the file |
Invisible tags are still there: Visual keeps them when you edit the text around them, and Markdown mode shows them. An HTML element on lines of its own is an HTML block — see HTML, front matter and footnotes.
Syntax that stays text
These come from other tools — Pandoc, Obsidian, GitLab, wikis — and aren’t part of CommonMark or GFM. Kirbon shows them as typed and keeps them in the file:
| Syntax | Where it comes from | Instead |
|---|---|---|
$x^2$, $$ … $$ | LaTeX math in many editors | A ```math fence — see Diagrams |
==highlight== | Obsidian, Typora | **bold** |
^superscript^, H~2~O | Pandoc | ~2~ is strikethrough here, as on GitHub; use plain text or a formula |
:smile: | GitHub emoji codes | The emoji itself: 😄 |
[[Page name]] | Wikis, Obsidian | In Visual, type [[ to insert a real link to a page |
[TOC], [[_TOC_]] | Wikis, GitLab | The Outline (⌥⌘O) |
Term and : Definition | Definition lists | A bold term and a paragraph, or a table |
{.class}, {#id} | Attributes | — |
@name, #123 | Mentions and issue numbers | A link |