[ANN] dream-html 3.1.0
Thanks to the efforts of Kento Okura, I am happy to announce the release of 3.1.0, which brings complete support for all standard MathML attributes and elements.
Eg:
open Dream_html
open MathML
let op sym = mo [] [txt "%s" sym]
let pow i n = msup [] [
mi [] [txt "%s" i];
mn [] [txt "%s" n];
]
(* a^2+b^2=c^2 *)
let pythagoras_theorem = mtable [] [
mtr [] [
mtd [] [pow "a" "2"; op "+"; pow "b" "2"];
mtd [] [op "="];
mtd [] [pow "c" "2"];
];
]
As you can see, we can write helpers that greatly reduce duplication.
This addition completes dream-html’s support for all standard XML-based markups that are rendered by browsers.
This release also deprecates a couple of non-standard HTML attributes that I had mistakenly added before.