Skip to content

Commit

Permalink
Add KaTeX for rendering maths in pkgdown site. NOTE: this should be e…
Browse files Browse the repository at this point in the history
…asier but see r-lib/pkgdown#2704 and update this when fixed
  • Loading branch information
louisaslett committed Aug 23, 2024
1 parent 53d44c8 commit 8bba298
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
url: https://mlmc.louisaslett.com/
template:
bootstrap: 5
includes:
in_header: |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
navbar:
structure:
left: [intro, reference, articles, tutorials, news, giles]
Expand Down

0 comments on commit 8bba298

Please sign in to comment.