gmi2xhtml
=========
gmi2xhtml is an awk script to convert gemtext to strict xhtml (compatible html).
Some extras were added :
- a line starting with "---" is turned into a horizontal rule "<hr />"
- a line starting with "//" are comments, turned into "<!-- comment -->"
Some options are availables :
- -v dotoc=1
- -v tocminhead=5
- -v anchors=0
# -v dotoc=1 # generate a table of contents at the end of the document # toc is in a ul with "toc" id, # Add anywhere a link pointing to href="toc" to display it with the # following CSS example: # #toc{ # visibility:hidden; # position:fixed; # z-index:+1; # width:100%; # height:100%; # visibility:hidden; # } # #toc:target { visibility:visible; } # # -v tocminhead=5 # minimum number of header to display the table of contents # default: 5 # # -v anchors=0 # set to 1 to enable # display anchor links in headers, # with class "anchor" (for css)