about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorYihui Xie2017-07-13 02:04:40 -0500
committerYihui Xie2017-07-13 02:07:56 -0500
commit85309648e9fd427561ceca4d14ce5d17f5b2e393 (patch)
tree94bf06f7576070440cb0b3c36c1cada418d06125
parent5e3ead4fe466c0c485a797a8ab5f5fece6753dcd (diff)
downloadhugo-xmin-85309648e9fd427561ceca4d14ce5d17f5b2e393.tar.lz
hugo-xmin-85309648e9fd427561ceca4d14ce5d17f5b2e393.tar.zst
hugo-xmin-85309648e9fd427561ceca4d14ce5d17f5b2e393.zip
no longer need to configure MathJax due to https://github.com/yihui/hugo-lithium-theme/commit/2838faa426f9060dd98b0b7c3aa7a4106863cca5
-rw-r--r--exampleSite/content/about.md8
-rw-r--r--exampleSite/content/post/2016-02-14-hello-markdown.md2
-rw-r--r--exampleSite/layouts/partials/foot_custom.html8
3 files changed, 1 insertions, 17 deletions
diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md
index aea884a..dd83942 100644
--- a/exampleSite/content/about.md
+++ b/exampleSite/content/about.md
@@ -56,14 +56,6 @@ There are two layout files under `layouts/partials/` that you may want to overri
 
 ```html
 <script src="//yihui.name/js/math-code.js"></script>
-<script type="text/x-mathjax-config">
-MathJax.Hub.Config({
-  tex2jax: {
-    inlineMath: [['$','$'], ['\\(','\\)']],
-    processEscapes: true
-  }
-});
-</script>
 <script async src="//cdn.bootcss.com/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML">
 </script>
 
diff --git a/exampleSite/content/post/2016-02-14-hello-markdown.md b/exampleSite/content/post/2016-02-14-hello-markdown.md
index 31bad7c..e06e31a 100644
--- a/exampleSite/content/post/2016-02-14-hello-markdown.md
+++ b/exampleSite/content/post/2016-02-14-hello-markdown.md
@@ -29,7 +29,7 @@ There are many differences in syntax between Blackfriday's Markdown and Pandoc's
 - [ ] ...
 - [ ] Profit!
 
-Similarly, Blackfriday does not support LaTeX math and Pandoc does. I have added the MathJax support to this theme ([hugo-xmin](https://github.com/yihui/hugo-xmin)) but there is a caveat for plain Markdown posts: you have to include math expressions in a pair of backticks (inline: `` `$ $` ``; display style: `` `$$ $$` ``), e.g., `$S_n = \sum_{i=1}^n X_i$`.^[This is because we have to protect the math expressions from being interpreted as Markdown. You may not need the backticks if your math expression does not contain any special Markdown syntax such as underscores or asterisks, but it is always a safer choice to use backticks. When you happen to have a pair of literal dollar signs inside the same element, you can escape one dollar sign, e.g., `\$50 and $100` renders "\$50 and $100".] For R Markdown posts, you do not need the backticks, because Pandoc can identify and process math expressions.
+Similarly, Blackfriday does not support LaTeX math and Pandoc does. I have added the MathJax support to this theme ([hugo-xmin](https://github.com/yihui/hugo-xmin)) but there is a caveat for plain Markdown posts: you have to include math expressions in a pair of backticks (inline: `` `$ $` ``; display style: `` `$$ $$` ``), e.g., `$S_n = \sum_{i=1}^n X_i$`.^[This is because we have to protect the math expressions from being interpreted as Markdown.] For R Markdown posts, you do not need the backticks, because Pandoc can identify and process math expressions.
 
 When creating a new post, you have to decide whether the post format is Markdown or R Markdown, and this can be done via the `rmd` argument of the function `blogdown::new_post()`, e.g.
 
diff --git a/exampleSite/layouts/partials/foot_custom.html b/exampleSite/layouts/partials/foot_custom.html
index 3a95d13..658adb2 100644
--- a/exampleSite/layouts/partials/foot_custom.html
+++ b/exampleSite/layouts/partials/foot_custom.html
@@ -1,12 +1,4 @@
 <script src="//yihui.name/js/math-code.js"></script>
-<script type="text/x-mathjax-config">
-MathJax.Hub.Config({
-  tex2jax: {
-    inlineMath: [['$','$'], ['\\(','\\)']],
-    processEscapes: true
-  }
-});
-</script>
 <script async src="//cdn.bootcss.com/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML"></script>
 
 <script async src="//yihui.name/js/center-img.js"></script>