Summary of YAM syntax.
Title | First paragraph of the file. |
Headings | %1,%2,etc.; %1* is unnumbered; follow with blank line |
Bold, italic, teletype, underlined | *...*, _..._, ^...^, __...__ |
Contents | %contents |
Horizontal lines | -— |
Tables | %[ | row 1/column 1 | r1/c2 | -— | r2/c1 | r2/c2 | %] |
Block quotation | %"...%" |
Line break | %br |
Verbatim | %<...%> |
Code | %code(lang=Java)< ... %> |
Lists | - item 1 |
Footnote | %footnote(...) |
Escaping | \ |
Links |
http://thing.com/ or %(http://thing.com/) or |
Anchors | %#name (then link to it with "%(#name)") |
Images | %image(file) or |
Citations | %cite(citekey,citekey,...) |
Inclusion | %include(file.yam) |
Non-breaking space | %\ followed by space |
Single-line comment / notes | %% ... |
Multi-line comment / notes | %/* ... %*/ |
Special characters | (e.g. < or & in HTML) are |
%twitter(title=GATE News, account=GateAcUk, name=GATE, count=10) | |
%google(siteip=gate.ac.uk) | |
Metadata | %meta(author=My Name) become <meta> tags in the HTML |