Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 573 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 573 Bytes

goldmark-formatter

GoDoc

This goldmark renderer extension adds support for formatting markdown.

source := []byte("# Title\nParagraph *em **bold*** [link](/).")
md := goldmark.New(
    goldmark.WithRenderer(formatter.Markdown), // markdown output
)
if err := md.Convert(source, os.Stdout); err != nil {
    log.Fatal(err)
}
Title
=====

Paragraph *em **bold*** [link](/).