Skip to content

Commit

Permalink
Allow calling math shortcode with markdown (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeso committed Jan 8, 2024
1 parent df0662c commit 1c11add
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/shortcodes/math.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
{{ printf "%s/dist/contrib/auto-render.min.js" $katex | resources.GetRemote | minify | fingerprint | resources.Copy "js/auto-render.js" | .Page.Scratch.SetInMap "js" "math-2" }}
{{ resources.Get "js/math.js" | minify | fingerprint | .Page.Scratch.SetInMap "js" "math-3" }}

<div class="Math">
{{ `<div class="Math">` | htmlUnescape | safeHTML }}
{{ .Inner }}
</div>
{{ "</div>" | htmlUnescape | safeHTML }}

0 comments on commit 1c11add

Please sign in to comment.