markdown

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(src string) (string, error)

Convert parses Markdown src into a Tiptap JSON document string.

It uses core CommonMark only (no GFM extensions), so tables, strikethrough, and task-lists never enter the AST — they are deferred per the architecture. 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL