one rule: ; = literal ;
when you need a semicolon to stay as text and not trigger an operator, double it.
;; -> ;
;;. -> ;.
;;" -> ;"
;;| -> ;|
;;^ not bold -> ;^ not bold (no formatting)
;;- not a list -> ;- not a list (no bullet)
;t. or ;| or ;" as literal text inside table cells; would accidentally trigger an operator;' ... ;.) — content is already literal, no parsing inside; — nothing triggers, nothing to escapetable cells use ;t. as the cell closer. because ;t. is a dedicated closer,
regular ;. inside cell content does not clash — inline code, bold, italic all work
naturally inside cells without escaping.
if your cell content contains a literal ;t. or ;| as text, escape the semicolon:
;[ closer is ;;t. ;t. works — shows ;t. as text
;[ closer is ;;| ;t. works — shows ;| as text
;[ shows ;;^ bold ;;. ;t. works — shows ;^ bold ;. as text
;[ ;` code ;. inside ;t. works — ;. closes the code, ;t. closes the cell
| what you write | what renders |
| ; | |
| ;| | ;| |
| ;^ bold ;. | bold |
| ;" | ;" |
;^ bold ;. works (space after ;^)
;^bold;. also works (parser trims whitespace)
both are valid. whitespace between operator and content is cosmetic.
;. closes inline content (headings, bold, code, links, items).
;| closes block containers (div, nav, form — mtml).
;" closes attributes (class, id, style — mtml).
;t. closes table cells (dedicated, no clash with inline ;.).
;q. closes raw passthrough (content passes through untouched).
;. closes inline content (leaf — no children).
;| closes block content (branch — has children inside).
;- leaf item ;. no children
;- branch item has children
;- child one ;.
;- child two ;.
;|
use ;. to end content. use ;| to end a container.
between ;' and ;. everything is literal.
no operators are parsed inside. no escaping needed.
the closing ;. must be alone on its own line.
if you don't type ; nothing happens. text stays text.
this is the opposite of markdown where _ * # > - are all active by default.
in marktxt, the only character that matters is ; — and only when followed by an operator character.
| situation | write | renders as |
| literal semicolon | ; | ; |
| literal ;. | ;; + . | ;. |
| literal ;" | ;; + " | ;" |
| literal ;| | ;; + | | ;| |
| semicolon in prose | however; this works | however; this works |