package goldmark
Import Path
github.com/yuin/goldmark (on go.dev)
Dependency Relation
imports 6 packages, and imported by 3 packages
Involved Source Files
Package goldmark implements functions to convert markdown text to a desired format.
Package-Level Type Names (total 4, in which 3 are exported)
An Extender interface is used for extending Markdown.
Extend extends the Markdown.
*github.com/yuin/goldmark/extension.definitionList
*github.com/yuin/goldmark/extension.footnote
*github.com/yuin/goldmark/extension.gfm
*github.com/yuin/goldmark/extension.linkify
*github.com/yuin/goldmark/extension.strikethrough
*github.com/yuin/goldmark/extension.table
*github.com/yuin/goldmark/extension.taskList
*github.com/yuin/goldmark/extension.typographer
*github.com/yuin/goldmark-emoji.emoji
func github.com/yuin/goldmark/extension.NewFootnote(opts ...extension.FootnoteOption) Extender
func github.com/yuin/goldmark/extension.NewLinkify(opts ...extension.LinkifyOption) Extender
func github.com/yuin/goldmark/extension.NewTable(opts ...extension.TableOption) Extender
func github.com/yuin/goldmark/extension.NewTypographer(opts ...extension.TypographerOption) Extender
func github.com/yuin/goldmark-emoji.New(opts ...emoji.Option) Extender
func WithExtensions(ext ...Extender) Option
A Markdown interface offers functions to convert Markdown text to
a desired format.
Convert interprets a UTF-8 bytes source in Markdown and write rendered
contents to a writer w.
Parser returns a Parser that will be used for conversion.
Parser returns a Renderer that will be used for conversion.
SetParser sets a Parser to this object.
SetRenderer sets a Renderer to this object.
*markdown
func New(options ...Option) Markdown
func Extender.Extend(Markdown)
var defaultMarkdown
Option is a functional option type for Markdown objects.
func WithExtensions(ext ...Extender) Option
func WithParser(p parser.Parser) Option
func WithParserOptions(opts ...parser.Option) Option
func WithRenderer(r renderer.Renderer) Option
func WithRendererOptions(opts ...renderer.Option) Option
func New(options ...Option) Markdown
Package-Level Functions (total 9, all are exported)
Convert interprets a UTF-8 bytes source in Markdown and
write rendered contents to a writer w.
DefaultParser returns a new Parser that is configured by default values.
DefaultRenderer returns a new Renderer that is configured by default values.
New returns a new Markdown with given options.
WithExtensions adds extensions.
WithParser allows you to override the default parser.
WithParserOptions applies options for the parser.
WithRenderer allows you to override the default renderer.
WithRendererOptions applies options for the renderer.
Package-Level Variables (only one, which is unexported)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |