Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
test
  • Loading branch information
jonah-ramponi committed Mar 30, 2024
1 parent 9562671 commit 6163375
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 2 deletions.
Binary file modified README.md
Binary file not shown.
18 changes: 17 additions & 1 deletion config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
baseURL: http://jonah-ramponi.github.io/jonahsdemo/
languageCode: en-us
title: My New Hugo Site
theme: PaperMod
theme: PaperMod
markup:
goldmark:
extensions:
passthrough:
delimiters:
block:
- - \[
- \]
- - $$
- $$
inline:
- - \(
- \)
enable: true
params:
math: true
7 changes: 6 additions & 1 deletion content/docs/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ date: 2024-03-30T11:49:13Z
draft: false
---

Here's my content! What do you think ?
Here's my content! What do you think ? $1^2$


```math
\sqrt{3} # with or without delimiters
```
5 changes: 5 additions & 0 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<head>
{{ if .Param "math" }}
{{ partialCached "math.html" . }}
{{ end }}
</head>
9 changes: 9 additions & 0 deletions layouts/partials/math.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
<script>
MathJax = {
tex: {
displayMath: [['\\[', '\\]'], ['$$', '$$']], // block
inlineMath: [['\\(', '\\)']] // inline
}
};
</script>

0 comments on commit 6163375

Please sign in to comment.