mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-17 13:44:41 -04:00
Update MathJax official CDN and respective code block
Closes rdwatters/hugo-docs-concept#104 See PR gohugoio/hugo#3416
This commit is contained in:
parent
86f36c385c
commit
b6dc570cb4
@ -118,11 +118,11 @@ This is not an introduction into actually using MathJax to render typeset mathem
|
||||
|
||||
### Enabling MathJax
|
||||
|
||||
The first step is to enable MathJax on pages that you would like to have typeset math. There are multiple ways to do this (adventurous readers can consult the [Loading and Configuring](http://docs.mathjax.org/en/latest/configuration.html) section of the MathJax documentation for additional methods of including MathJax), but the easiest way is to use the secure MathJax CDN by including the following HTML snippet in the source of a page:
|
||||
The first step is to enable MathJax on pages that you would like to have typeset math. There are multiple ways to do this (adventurous readers can consult the [Loading and Configuring](http://docs.mathjax.org/en/latest/configuration.html) section of the MathJax documentation for additional methods of including MathJax), but the easiest way is to use the secure MathJax CDN by include a `<script>` tag for the officially recommended secure CDN ([cdn.js.com](https://cdnjs.com)):
|
||||
|
||||
{{% code file="add-mathjax-to-page.html" %}}
|
||||
```html
|
||||
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
|
||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
|
||||
</script>
|
||||
```
|
||||
{{% /code %}}
|
||||
|
@ -197,8 +197,6 @@ layout: mylayout
|
||||
---
|
||||
```
|
||||
{{% /code %}}
|
||||
|
||||
|
||||
<!-- See https://discuss.gohugo.io/t/path-not-works/6387 -->
|
||||
<!-- ### `path`
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user