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(...)
Click to show internal directories.
Click to hide internal directories.