Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
Convert parses Markdown src into a Tiptap JSON document string.
It uses CommonMark plus the GFM table and strikethrough extensions, so fenced tables and `~~strike~~` enter the AST and map onto the tiptap nodes the renderer and the admin editor already understand. Task lists stay deferred: no other pipeline leg (validator, renderer, editor) speaks `taskList`/`taskItem`, so converting them here alone would emit documents nothing can render. Unsupported node kinds are stripped and logged; the conversion itself never fails on content: empty or whitespace-only input yields a minimal valid doc. The only error returned is an internal JSON marshal failure, which is effectively unreachable for the node structures emitted here.
Types ¶
This section is empty.