markdown

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromMarkdown

func FromMarkdown(md string) ([]types.Block, error)

FromMarkdown parses Markdown and returns Notion block definitions.

func MarkdownToRichText

func MarkdownToRichText(md string) types.RichTextArray

MarkdownToRichText parses inline Markdown formatting into a RichTextArray. Handles: **bold**, *italic*, ~~strikethrough~~, `code`, <u>underline</u>, text(url).

func RichTextToMarkdown

func RichTextToMarkdown(rt types.RichTextArray) string

RichTextToMarkdown converts a rich text array to a Markdown string.

func ToMarkdown

func ToMarkdown(blocks []types.Block) string

ToMarkdown converts Notion blocks to Markdown text.

Types

This section is empty.

Jump to

Keyboard shortcuts

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