Skip to content

Commit

Permalink
export mathjax script when building the static site
Browse files Browse the repository at this point in the history
  • Loading branch information
emad-elsaid committed Apr 24, 2023
1 parent fd383ff commit c6509cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extensions/mathjax/renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const script = `<script async src="/js/mathjax.js"></script>`

func init() {
RegisterStaticDir(js)
RegisterBuildPage("/js/mathjax.js", false)
MarkDownRenderer.Renderer().AddOptions(renderer.WithNodeRenderers(
util.Prioritized(&InlineMathRenderer{startDelim: `\(`, endDelim: `\)`}, 0),
util.Prioritized(&MathBlockRenderer{startDelim: `\[`, endDelim: `\]`}, 0),
Expand Down

0 comments on commit c6509cf

Please sign in to comment.