package goportabletext
import "github.com/bep/goportabletext"
Index ¶
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.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal |
- Version
- v0.1.0 (latest)
- Published
- Feb 25, 2025
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- now –
Tools for package owners.