A spec describes what nodes and marks can be in an editor.
list of MarkDefinition from a spec
Returns the mark definition with the given name from a spec.
markDefinition "bold" markdown
--> Just (bold mark definition)list of ElementDefinition from a spec
Returns the element definition with the given name from a spec.
elementDefinition "paragraph" markdown
--> Just (paragraph element definition)a spec with the given mark definitions
a spec with the given element definitions
A spec describes what nodes and marks can be in an editor. It's used internally to encode an editor to html, and to transform html to editor nodes. Note for the latter, the order of nodes and marks is significant, because that is the order in which each node and mark's decoder method is applied.