-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
No bullets from
package main
import (
"os"
pdf "github.com/stephenafamo/goldmark-pdf"
"github.com/yuin/goldmark"
"github.com/yuin/goldmark/extension"
"github.com/yuin/goldmark/parser"
)
var markdown []byte = []byte(`
# Hello
- item 1
- item 2
# Goodbye
`)
func main() {
file, err := os.Create("/tmp/output.pdf")
if err != nil {
panic(err)
}
md := goldmark.New(
goldmark.WithExtensions(extension.GFM),
goldmark.WithRenderer(
pdf.New(),
),
goldmark.WithParserOptions(
parser.WithAutoHeadingID(),
),
)
if err := md.Convert(markdown, file); err != nil {
panic(err)
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels