NLdoc.Conversion.Writer.Tiptap (NLdoc.Conversion.Writer.Tiptap v1.2.28)
View SourceThis writer converts NLdoc Spec objects to Tiptap Elements.
Summary
Functions
Converts NLdoc Spec Document to Tiptap document
Types
@type tiptap_attribute() :: {String.t(), tiptap_attribute_value()}
@type tiptap_attribute_map() :: %{required(String.t()) => tiptap_attribute_value()}
@type tiptap_element() :: map()
@type tiptap_mark() :: map()
Functions
@spec convert(NLdoc.Spec.Document.t()) :: tiptap_element()
Converts NLdoc Spec Document to Tiptap document