NLdoc.Conversion.Writer.Tiptap (NLdoc.Conversion.Writer.Tiptap v1.2.28)

View Source

This writer converts NLdoc Spec objects to Tiptap Elements.

Summary

Functions

Converts NLdoc Spec Document to Tiptap document

Types

tiptap_attribute()

@type tiptap_attribute() :: {String.t(), tiptap_attribute_value()}

tiptap_attribute_map()

@type tiptap_attribute_map() :: %{required(String.t()) => tiptap_attribute_value()}

tiptap_attribute_value()

@type tiptap_attribute_value() :: String.t() | number() | boolean()

tiptap_element()

@type tiptap_element() :: map()

tiptap_mark()

@type tiptap_mark() :: map()

Functions

convert(doc)

@spec convert(NLdoc.Spec.Document.t()) :: tiptap_element()

Converts NLdoc Spec Document to Tiptap document