Skip to main content

Crate tiptap_rusty_markdown

Crate tiptap_rusty_markdown 

Source
Expand description

Markdown <-> Tiptap/ProseMirror JSONContent on top of tiptap_rusty_parser.

Options are plain data structs (no closures) so the same surface can be exposed over WASM/FFI later.

Structs§

Document
An owned Tiptap document (its root node, usually type: "doc").
Node
A single Tiptap/ProseMirror node.
ParseOptions
Import options.
RenderOptions
Export options.

Enums§

HtmlPolicy
What to do with raw HTML found in Markdown.
UnknownNodePolicy
How to render a node with no Markdown equivalent.

Constants§

DEFAULT_MAX_DEPTH
serde_json’s default recursion limit.

Functions§

from_markdown
Parse Markdown with default options (GFM on, HTML kept as text).
from_markdown_with
Parse Markdown with opts. Never panics; the result always has at least one block.
to_markdown
Render node to Markdown with default options.
to_markdown_with
Render node to Markdown with opts.