Skip to content

Commit 166b17f

Browse files
committed
present: support markdown table
1 parent fd4102a commit 166b17f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

present/parse.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222

2323
"github.com/yuin/goldmark"
2424
"github.com/yuin/goldmark/ast"
25+
"github.com/yuin/goldmark/extension"
2526
"github.com/yuin/goldmark/renderer/html"
2627
"github.com/yuin/goldmark/text"
2728
)
@@ -698,7 +699,7 @@ func trimSpeakerNote(s string) string {
698699
}
699700

700701
func renderMarkdown(input []byte) (template.HTML, error) {
701-
md := goldmark.New(goldmark.WithRendererOptions(html.WithUnsafe()))
702+
md := goldmark.New(goldmark.WithRendererOptions(html.WithUnsafe()), goldmark.WithExtensions(extension.Table))
702703
reader := text.NewReader(input)
703704
doc := md.Parser().Parse(reader)
704705
fixupMarkdown(doc)

0 commit comments

Comments
 (0)