markdown

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 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.

Jump to

Keyboard shortcuts

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