GUIDE 7 — FULL ELEMENT REFERENCE

home | guide index


the \ expander

marktxt extends into full html replacement with the \ expander.
after \, read exactly 2 characters. the second character determines type:

block elements close with ;| and inline elements close with ;.


attributes

shortcuthtml outputexample
?:value;"class="value"?:box,card;" = class="box card"
$:value;"style="value"$:color>red;" = style="color:red"
\i:value;"id="value"\i:main;" = id="main"
\a:key>val;"key="val"\a:type>email;" = type="email"
\a:flag;"flag (boolean)\a:disabled;" = disabled
\e:name;"entity\e:copy;" = ©

dot-padded elements (page structure)

marktxthtmlcloserdescription
\b.body;|document body
\c.canvas;|drawing surface
\d.div;|division / container
\f.footer;|page or section footer
\g.figure;|figure container
\h.header;|page or section header
\j.script;|javascript
\k.link;|resource link (void)
\l.label;.form label
\m.main;|main content
\n.nav;|navigation
\o.option;.select option
\p.template;|web component template
\q.(raw);|passthrough (svg, mathml)
\r.article;|article
\s.span;.inline container
\t.table;|table
\u.audio;|audio player
\v.video;|video player
\w.aside;|sidebar / tangent
\x.section;|thematic section
\y.style;|stylesheet block

double-letter elements

marktxthtmlcloserdescription
\aaarea;|image map region (void)
\bbbutton;.clickable button
\cccaption;.table caption
\dddetails;|disclosure widget
\eeembed;|external plugin (void)
\ffform;|form container
\ggfigcaption;.figure caption
\hhhead;|document head
\iiinput;|input field (void)
\jjiframe;|inline frame
\kkkbd;.keyboard input
\lllegend;.fieldset caption
\mmmeta;|metadata (void)
\nnnoscript;|no-script fallback
\ooobject;|embedded object
\pppicture;|responsive image
\rrruby;.ruby annotation
\ssselect;|dropdown
\tttextarea;|text area
\uusummary;.disclosure heading
\vvvar;.variable
\wwdialog;|dialog box
\xxsearch;|search landmark
\yyslot;.web component slot

mnemonic elements (grouped by parent)

table group

marktxthtmlcloserdescription
\ththead;|table head group
\tbtbody;|table body group
\tftfoot;|table foot group
\trtr;|table row
\tdtd;.table cell
\twth;.table header cell
\tgcolgroup;|column group
\tkcol;|column (void)

form group

marktxthtmlcloserdescription
\fdfieldset;|field group
\fgoptgroup;|option group
\fkdatalist;|input suggestions
\fpoutput;.calculated result

media group

marktxthtmlcloserdescription
\mssource;|media source (void)
\mktrack;|subtitles / captions (void)
\mpmap;|image map

head group

marktxthtmlcloserdescription
\httitle;.page title

inline semantics

marktxthtmlcloserdescription
\immark;.highlight
\ittime;.date / time
\iaabbr;.abbreviation
\iccite;.citation
\ixdfn;.definition
\ipsamp;.sample output
\ilsmall;.side comment
\iqq;.inline quote
\iwwbr;.word break (void)

progress and meter

marktxthtmlcloserdescription
\pgprogress;.progress bar
\pmmeter;.measurement gauge

description list

marktxthtmlcloserdescription
\dldl;|description list
\dtdt;.description term
\dcdd;.description detail

ruby

marktxthtmlcloserdescription
\rtrt;.ruby text
\rprp;.ruby parenthesis

rare

marktxthtmlcloserdescription
\bibdi;.bidi isolate
\bobdo;.bidi override
\dadata;.machine-readable
\inins;.inserted text
\dedel;.deleted text
\adaddress;|contact info
\hghgroup;|heading group
\mnmenu;|toolbar menu
\babase;|base URL (void)

void elements (self-closing)

these elements have no content — attributes then ;| immediately.

\k. \ii \mm \aa \ee \tk \ms \mk \iw \ba

;\ii\a:type>email;\i:email;" ;|       <input type="email" id="email">
;\mm\a:charset>utf-8;" ;|            <meta charset="utf-8">
;\k.\a:rel>stylesheet;\a:href>/s.css;" ;|  <link rel="stylesheet" href="/s.css">

core operators (built-in, no \ needed)

these are part of base .mt — they have their own operators:

marktxthtmldescription
;^ text ;.strongbold
;% text ;.emitalic
;` text ;.codeinline code
;' block ;.pre + codecode block
;- item ;.li (in ul)bullet
;N. item ;.li (in ol)numbered
;+ item ;.checkboxunchecked
;* item ;.checkboxchecked
;< text ;.blockquotequote
;} url ;.aplain link
;] text ;. ;}url ;.alinked text
;{ alt ;. ;}url ;.imgimage
;[ cell ;tdtable cell
;~ text ;.pparagraph
;! ;.brline break
;& ;.hrdivider
;# text ;.(none)comment
;\st text ;.delstrikethrough
;\sp text ;.supsuperscript
;\sb text ;.subsubscript
;\fn text ;.smallfootnote
;\d. ;|divblock container
;\s. ;.spaninline container

reference links

want to compare syntax? check the official docs:


prev: structure | next: escaping and tips