Document is a Markdown like format that transpiles TextML to HTML.
Directives
#metadata take a dictionary of TextML key values represented as a list of #KEY { VALUE } entries. For now this format is under-specified, available values are
#link{ TEXT }{ URL }: the mnemonic is "from TEXT to URL".
#note{ TEXT }{ NOTE_TEXT }: like a footnote but more generic, wraps TEXT in a span with a random UUID. NOTE_TEXT is put in a <div> at the end of the rendered document with a reference to the generated UUID (something like data-ref-note-id="...")
#ref{ TEXT }{ REF }: like previous but only generates the span with a data attribute like data-ref="REF" for interlinking. (This can be used for example for highlighting (with js) all spans with the same REF when one of them is hovered)
Other:
#color{ CSS_COLOR }{ TEXT }: this utility wraps text in a span with the specified color.
#mark{ CLASS_NAME }{ TEXT }: this utility wraps text in a span with the specified css class.