NOTE: the latest version is 1.0.4
HtmlNode is used to determine how to render the editor. We don't use the built in Html library because we can't inspect a node after it has been created.
HtmlNode
An HTML node. It can be either an ElementNode or TextNode
ElementNode
TextNode
ElementNode "p" [ ( "class", "my-paragraph" ) ] (Array.fromList [ Text "sample" ])
An HTML attribute:
( "src", "logo.svg" )
An HTML node. It can be either an
ElementNodeorTextNode