# .*html # # == About == # # A collection of ftags that generate an image HTML tag, containing the specified # thing. This is done, because these tags need to have specific classes, which is # supported in Markdown, but is less flexible and more tedious. # # -- Placement/Flow -- # # They can reside absolutely anywhere in text. function flagSub(name, alt) { gsub("&&" name, "\""") } /&&gb/ { flagSub("gb", "ENG") } /&&bg/ { flagSub("bg", "BGN") } function articleIconSub(name, filename) { sub("p>&&" name, "p class=\"special-par " name "-par\">\\&\\&" name) gsub("&&" name, "\""") } /&&question/ { articleIconSub("question", "dialog-question.png") } /&&warn/ { articleIconSub("warn", "dialog-warning.png") } /&&important/ { articleIconSub("important", "dialog-important.png") }