Specification of a single mark type, such as bold or link.
Fields:
:name— the mark name, an atom:attrs— map of attribute name toCoelho.Schema.Attr:class— a CSS class merged into the rendered element and exported to the browser, so the editor shows the class the public page will use:editor_attrs— extra DOM attributes for the editor only, exported with the schema and never emitted server side:render— how the mark is turned into HTML, seeCoelho.Render:parse— HTML this mark is imported from, seeCoelho.HTML
Summary
Types
@type t() :: %Coelho.Schema.MarkSpec{ attrs: %{optional(atom()) => Coelho.Schema.Attr.t()}, class: String.t() | nil, editor_attrs: %{optional(String.t()) => String.t()}, name: atom(), parse: [Coelho.HTML.rule()], render: Coelho.Schema.NodeSpec.render() }