Mercurial > repos > public > wdown
diff wdown.go @ 10:1ffe6e4f933c
Add math support through MathJax
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 17 Jun 2020 22:13:03 +0200 |
parents | a5aa39557726 |
children | ebecd141e9d3 |
line wrap: on
line diff
--- a/wdown.go Wed Jun 17 22:12:32 2020 +0200 +++ b/wdown.go Wed Jun 17 22:13:03 2020 +0200 @@ -9,6 +9,7 @@ "os" "github.com/cbroglie/mustache" + mathjax "github.com/litao91/goldmark-mathjax" "github.com/yuin/goldmark" highlighting "github.com/yuin/goldmark-highlighting" meta "github.com/yuin/goldmark-meta" @@ -49,6 +50,7 @@ extension.GFM, highlighting.Highlighting, meta.Meta, + mathjax.MathJax, ), goldmark.WithParserOptions( parser.WithAutoHeadingID(),