Skip to content

Commit 19f4dad

Browse files
committed
test with latest MathJax & KaTeX
1 parent 4fad213 commit 19f4dad

File tree

11 files changed

+42
-28
lines changed

11 files changed

+42
-28
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,19 @@ pseudocode.js can render math formulas using either
3131
Include the following in the `<head>` of your page:
3232

3333
```html
34-
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.11.1/katex.min.js"
35-
integrity="sha256-F/Xda58SPdcUCr+xhSGz9MA2zQBPb0ASEYKohl8UCHc=" crossorigin="anonymous">
34+
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/katex.min.js"
35+
integrity="sha512-EKW5YvKU3hpyyOcN6jQnAxO/L8gts+YdYV6Yymtl8pk9YlYFtqJgihORuRoBXK8/cOIlappdU6Ms8KdK6yBCgA=="
36+
crossorigin="anonymous" referrerpolicy="no-referrer">
3637
</script>
3738
```
3839

3940
#### Step 1B &middot; For MathJax 2.x users
4041
Include the following in the `<head>` of your page:
4142

4243
```html
43-
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_CHTML'>
44+
<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js?config=TeX-AMS_CHTML"
45+
integrity="sha256-DViIOMYdwlM/axqoGDPeUyf0urLoHMN4QACBKyB58Uw="
46+
crossorigin="anonymous" referrerpolicy="no-referrer">
4447
</script>
4548
<script type="text/x-mathjax-config">
4649
MathJax.Hub.Config({
@@ -68,8 +71,9 @@ Include the following in the `<head>` of your page:
6871
}
6972
}
7073
</script>
71-
<script src="https://cdn.jsdelivr.net/npm/mathjax@3.0.0/es5/tex-chtml.js"
72-
integrity="sha256-3Fdoa5wQb+JYfEmTpQHx9sc/GuwpfC/0R9EpBki+mf8=" crossorigin>
74+
<script src="https://cdn.jsdelivr.net/npm/mathjax@3.2.2/es5/tex-chtml.js"
75+
integrity="sha256-Cm3tWrvOEzMWWN0jnzQ4Kr0GSSx0txth6MqoES7FX6U="
76+
crossorigin="anonymous" referrerpolicy="no-referrer">
7377
</script>
7478
```
7579

docs/index.html

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,22 @@
99

1010
<link rel="stylesheet" href="stylesheets/styles.css">
1111
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
12-
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.0/css/all.css">
13-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/styles/default.min.css"
14-
integrity="sha256-zcunqSn1llgADaIPFyzrQ8USIjX2VpuxHzUwYisOwo8=" crossorigin="anonymous" />
12+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
13+
integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw=="
14+
crossorigin="anonymous" referrerpolicy="no-referrer" />
15+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/default.min.css"
16+
integrity="sha512-hasIneQUHlh06VNBe7f6ZcHmeRTLIaQWFd43YriJ0UND19bvYRauxthDg8E4eVNPm9bRUhr5JGeqH7FRFXQu5g=="
17+
crossorigin="anonymous" referrerpolicy="no-referrer" />
1518
<link rel="stylesheet" href="pseudocode.css">
1619

17-
<!--[if lt IE 9]>
18-
<script src="javascripts/html5.js"></script>
19-
<![endif]-->
2020
<script src="javascripts/autosize.min.js"></script>
21-
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/highlight.min.js"
22-
integrity="sha256-eOgo0OtLL4cdq7RdwRUiGKLX9XsIJ7nGhWEKbohmVAQ=" crossorigin="anonymous">
21+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"
22+
integrity="sha512-rdhY3cbXURo13l/WU9VlaRyaIYeJ/KBakckXIvJNAQde8DgpOmE+eZf7ha4vdqVjTtwQt69bD2wH2LXob/LB7Q=="
23+
crossorigin="anonymous" referrerpolicy="no-referrer">
2324
</script>
24-
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.11.1/katex.min.js"
25-
integrity="sha256-F/Xda58SPdcUCr+xhSGz9MA2zQBPb0ASEYKohl8UCHc=" crossorigin="anonymous">
25+
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/katex.min.js"
26+
integrity="sha512-EKW5YvKU3hpyyOcN6jQnAxO/L8gts+YdYV6Yymtl8pk9YlYFtqJgihORuRoBXK8/cOIlappdU6Ms8KdK6yBCgA=="
27+
crossorigin="anonymous" referrerpolicy="no-referrer">
2628
</script>
2729
<script src="pseudocode.js"></script>
2830

docs/katex-samples.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
<title>pseudocode.js Samples with KaTeX</title>
77

88
<!-- Setup KaTeX -->
9-
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.11.1/katex.min.js"
10-
integrity="sha256-F/Xda58SPdcUCr+xhSGz9MA2zQBPb0ASEYKohl8UCHc=" crossorigin="anonymous">
9+
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/katex.min.js"
10+
integrity="sha512-EKW5YvKU3hpyyOcN6jQnAxO/L8gts+YdYV6Yymtl8pk9YlYFtqJgihORuRoBXK8/cOIlappdU6Ms8KdK6yBCgA=="
11+
crossorigin="anonymous" referrerpolicy="no-referrer">
1112
</script>
1213

1314
<!-- Pseudocode -->

docs/mathjax-v2-samples.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
<title>pseudocode.js Samples with MathJax</title>
77

88
<!-- Setup MathJax -->
9-
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_CHTML'>
9+
<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js?config=TeX-AMS_CHTML"
10+
integrity="sha256-DViIOMYdwlM/axqoGDPeUyf0urLoHMN4QACBKyB58Uw="
11+
crossorigin="anonymous" referrerpolicy="no-referrer">
1012
</script>
1113
<script type="text/x-mathjax-config">
1214
MathJax.Hub.Config({

docs/mathjax-v3-samples.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
}
1717
}
1818
</script>
19-
<script src="https://cdn.jsdelivr.net/npm/mathjax@3.0.0/es5/tex-chtml.js"
20-
integrity="sha256-3Fdoa5wQb+JYfEmTpQHx9sc/GuwpfC/0R9EpBki+mf8=" crossorigin>
19+
<script src="https://cdn.jsdelivr.net/npm/mathjax@3.2.2/es5/tex-chtml.js"
20+
integrity="sha256-Cm3tWrvOEzMWWN0jnzQ4Kr0GSSx0txth6MqoES7FX6U="
21+
crossorigin="anonymous" referrerpolicy="no-referrer">
2122
</script>
2223

2324
<!-- Pseudocode -->

docs/pseudocode.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"browserify": "^17.0.0",
2323
"clean-css-cli": "^5.3.0",
2424
"eslint": "^8.25.0",
25-
"katex": "^0.16.3",
25+
"katex": "^0.16.7",
2626
"uglify-js": "^3.17.4",
2727
"watchify": "^4.0.0",
2828
"clean-css": "^5.2.4"

static/katex.html.part

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
<title>pseudocode.js Samples with KaTeX</title>
77

88
<!-- Setup KaTeX -->
9-
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.11.1/katex.min.js"
10-
integrity="sha256-F/Xda58SPdcUCr+xhSGz9MA2zQBPb0ASEYKohl8UCHc=" crossorigin="anonymous">
9+
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/katex.min.js"
10+
integrity="sha512-EKW5YvKU3hpyyOcN6jQnAxO/L8gts+YdYV6Yymtl8pk9YlYFtqJgihORuRoBXK8/cOIlappdU6Ms8KdK6yBCgA=="
11+
crossorigin="anonymous" referrerpolicy="no-referrer">
1112
</script>
1213

1314
<!-- Pseudocode -->

static/mathjax-v2.html.part

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
<title>pseudocode.js Samples with MathJax</title>
77

88
<!-- Setup MathJax -->
9-
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_CHTML'>
9+
<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js?config=TeX-AMS_CHTML"
10+
integrity="sha256-DViIOMYdwlM/axqoGDPeUyf0urLoHMN4QACBKyB58Uw="
11+
crossorigin="anonymous" referrerpolicy="no-referrer">
1012
</script>
1113
<script type="text/x-mathjax-config">
1214
MathJax.Hub.Config({

static/mathjax-v3.html.part

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
}
1717
}
1818
</script>
19-
<script src="https://cdn.jsdelivr.net/npm/mathjax@3.0.0/es5/tex-chtml.js"
20-
integrity="sha256-3Fdoa5wQb+JYfEmTpQHx9sc/GuwpfC/0R9EpBki+mf8=" crossorigin>
19+
<script src="https://cdn.jsdelivr.net/npm/mathjax@3.2.2/es5/tex-chtml.js"
20+
integrity="sha256-Cm3tWrvOEzMWWN0jnzQ4Kr0GSSx0txth6MqoES7FX6U="
21+
crossorigin="anonymous" referrerpolicy="no-referrer">
2122
</script>
2223

2324
<!-- Pseudocode -->

0 commit comments

Comments
 (0)