markdown

package
v0.0.0-...-bbf0d79 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(ctx context.Context, blocks renderer.BlockUpdater, opts ...renderer.Option) Processor

NewProcessor returns a new simple Markdown processor that can be used to process Markdown test, sending the resulting Notion document blocks to the given BlockUpdater.

func (Processor) ProcessMarkdown

func (c Processor) ProcessMarkdown(source []byte, opts ...parser.ParseOption) error

ProcessMarkdown ingests the given Markdown source, sending converted to Notion blocks to the BlockUpdater given in NewProcessor(...)

Jump to

Keyboard shortcuts

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