Skip to content

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 fileKirbon shows
# Release Process on the first lineThe title “Release Process”
Front matter, then # Release Process“Page properties” above the title “Release Process”
Release Process with === under itThe title too — the underlined form of #
A paragraph, then # Release ProcessA 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 fileKirbon shows
## Setup … ###### NotesHeadings of levels 2 to 6
Setup with --- under itA level-2 heading
## Setup ##“Setup” — closing #s are hidden
##SetupA paragraph “##Setup”: # needs a space after it
####### SevenA paragraph: there are only six levels
## The `deploy` commandA heading with inline code; formatting in headings is shown
- ## Heading in a list, > ## Heading in a quoteHeadings 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.

HeadingAnchor
## 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 fileKirbon shows
A blank line between linesA new paragraph
A single line breakA space — the lines join into one paragraph
Two spaces at the end of a lineA line break inside the paragraph
\ at the end of a lineA 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 fileKirbon 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 fileKirbon shows
snake_case_namePlain 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
**unclosedPlain 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: &amp; &, &lt; <, &copy; ©, &#169; ©, &nbsp; a non-breaking space. When you edit text nearby, Kirbon keeps escapes and entities as you wrote them.

Web addresses

In the fileKirbon shows
<https://example.com>A link
https://example.com/path.A link without the final dot
www.example.comA link to http://www.example.com
http://localhost:3000A link
<team@example.com>A mail link
team@example.com, mailto:team@example.com in textPlain 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 fileKirbon shows
<br>A line break
<u>…</u>Underlined text
<img src="…" alt="Logo"> among textThe 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:

SyntaxWhere it comes fromInstead
$x^2$, $$ … $$LaTeX math in many editorsA ```math fence — see Diagrams
==highlight==Obsidian, Typora**bold**
^superscript^, H~2~OPandoc~2~ is strikethrough here, as on GitHub; use plain text or a formula
:smile:GitHub emoji codesThe emoji itself: 😄
[[Page name]]Wikis, ObsidianIn Visual, type [[ to insert a real link to a page
[TOC], [[_TOC_]]Wikis, GitLabThe Outline (⌥⌘O)
Term and : DefinitionDefinition listsA bold term and a paragraph, or a table
{.class}, {#id}Attributes—
@name, #123Mentions and issue numbersA link