HTML, front matter and footnotes
What Kirbon keeps as written and how it shows it, and how footnotes are numbered.
What “kept as written” means
Some Markdown can’t be edited visually without guessing what it should become. Kirbon shows it, keeps it byte for byte and leaves the editing to Markdown mode: a block appears as a labelled frame with Edit in Markdown, which switches the window to Markdown. Visual never rewrites it — not even when you edit the paragraph next to it.
| Kept as written | Shown as |
|---|---|
| Front matter | “Page properties · 3 fields” above the title |
| An HTML block | “HTML block · 6 lines” |
| An HTML comment on lines of its own | A small “Comment” marker |
| HTML and comments inside a line | Nothing — see HTML inside a line |
Link reference definitions ([setup]: ../setup.md) | Nothing, as on GitHub; the links that use them work |
| The second and later paragraphs of a footnote | Nothing — only the first paragraph is shown |
Front matter
---
title: Release Process
owner: platform
tags: [process, release]
---
# Release Process
| In the file | Kirbon shows |
|---|---|
--- on the very first line, closed by --- or ... | “Page properties · N fields”: N counts the top-level key: lines |
--- that is never closed | Not front matter: a divider, then the lines as text |
--- after a blank line or anything else | Not front matter |
+++ … +++ (TOML) | Text — only YAML front matter is recognised |
Front matter isn’t checked for links, and title: doesn’t name the page — the first # heading does.
HTML blocks
A line that starts with a block-level HTML tag — <div>, <details>, <table>, <p>, <section> and the like — starts an HTML block, which runs to the next blank line. Kirbon shows it as “HTML block · N lines”.
| In the file | Kirbon shows |
|---|---|
<table>…</table> | An HTML block |
<div> and text on the lines right under it, without a blank line | One HTML block, text included |
<p align="center"><img …></p> | An HTML block |
A single <img …> on its own line | The image, with its width — not an HTML block |
Only <img> elements on their lines | A row of images |
Markdown separated from HTML by blank lines is Markdown again, so a collapsible section shows its content:
<details>
<summary>Logs</summary>
The **content** is ordinary Markdown.
</details>
Kirbon shows an HTML block for the first two lines, the paragraph as text you can edit, and another HTML block for </details>. Without the blank lines, all of it would be one HTML block.
Comments
An HTML comment on lines of its own (<!-- … -->) shows as a small Comment marker; its text is visible in Markdown mode. A comment inside a line is invisible. A comment may come before the title without stopping it from being the title.
Footnotes
Kirbon writes GitHub alerts[^alerts] and plain Markdown.[^1]
[^alerts]: Five types: Note, Tip, Important, Warning and Caution.
[^1]: Read by GitHub, GitLab, Pandoc and most Markdown tools.
| In the file | Kirbon shows |
|---|---|
[^label] in text | A small raised number; a click goes to its note |
[^label]: The note. anywhere on the page | The note in the list at the end of the page |
The same [^label] used twice | The same number twice |
| A note that nothing refers to | Listed last |
[^label] without a note | A number that leads nowhere — GitHub shows [^label] as text |
| Lines indented under a note | Kept, but only the note’s first paragraph is shown |
Notes are numbered by where they are first referred to, whatever their labels: [^alerts] above is 1 and [^1] is 2. Labels can be words or numbers, without spaces. A note written on one line is edited in Visual right in the list at the end; a note of several paragraphs is edited in Markdown. Inserting a footnote in Visual is on Writing and formatting.
Reference links
Link reference definitions — lines like [setup]: ../development/local-setup.md — aren’t shown, as on GitHub. Links that use them ([Local Setup][setup], [setup][], [setup]) work like any link, and Visual keeps them in that form when you edit their text; their destination is changed in Markdown.
Files Kirbon can’t read
A file that isn’t valid UTF-8, or contains binary data, opens in Markdown mode with a banner explaining why Visual isn’t available. Kirbon never rewrites it unless you edit it.