Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToMarkdown ¶
func ToMarkdown(opts ToMarkdownOptions) error
ToMarkdown converts the given Portable Text blocks in opts.Src to Markdown and writes the result to opts.Dst.
Types ¶
type ToMarkdownOptions ¶
type ToMarkdownOptions struct {
// The destination writer.
Dst io.Writer
// The source Portable Text blocks.
// Can be either
// * a io.Reader with a JSON value or array of blocks.
// * map[string]any or a []any.
// * a portabletext.Blocks slice (used in benchmarks only).
Src any
}
ToMarkdownOptions provides options for the ToMarkdown function.
Click to show internal directories.
Click to hide internal directories.