From 19f4dad4fa37789c9e67c73fa2acae116dd0ba92 Mon Sep 17 00:00:00 2001 From: Saswat Padhi Date: Sun, 28 May 2023 00:43:03 +0000 Subject: [PATCH] test with latest MathJax & KaTeX --- README.md | 14 +++++++++----- docs/index.html | 22 ++++++++++++---------- docs/katex-samples.html | 5 +++-- docs/mathjax-v2-samples.html | 4 +++- docs/mathjax-v3-samples.html | 5 +++-- docs/pseudocode.css | 2 +- package.json | 2 +- static/katex.html.part | 5 +++-- static/mathjax-v2.html.part | 4 +++- static/mathjax-v3.html.part | 5 +++-- static/pseudocode.css | 2 +- 11 files changed, 42 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index bbcdda0..716c917 100644 --- a/README.md +++ b/README.md @@ -31,8 +31,9 @@ pseudocode.js can render math formulas using either Include the following in the `` of your page: ```html - ``` @@ -40,7 +41,9 @@ Include the following in the `` of your page: Include the following in the `` of your page: ```html - - ``` diff --git a/docs/index.html b/docs/index.html index 30fafcc..8745f43 100644 --- a/docs/index.html +++ b/docs/index.html @@ -9,20 +9,22 @@ - - + + - - - diff --git a/docs/katex-samples.html b/docs/katex-samples.html index 7ff70e7..53bf9a7 100644 --- a/docs/katex-samples.html +++ b/docs/katex-samples.html @@ -6,8 +6,9 @@ pseudocode.js Samples with KaTeX - diff --git a/docs/mathjax-v2-samples.html b/docs/mathjax-v2-samples.html index 3d07013..0038ef2 100644 --- a/docs/mathjax-v2-samples.html +++ b/docs/mathjax-v2-samples.html @@ -6,7 +6,9 @@ pseudocode.js Samples with MathJax - - diff --git a/docs/pseudocode.css b/docs/pseudocode.css index 6148216..c28ebfe 100644 --- a/docs/pseudocode.css +++ b/docs/pseudocode.css @@ -1 +1 @@ -@import url(https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.11.1/katex.min.css);.ps-root{font-family:KaTeX_Main,'Times New Roman',Times,serif;font-size:1em;font-weight:100;-webkit-font-smoothing:antialiased!important}.ps-root .ps-algorithm{margin:.8em 0;border-top:3px solid #000;border-bottom:2px solid #000}.ps-root .ps-algorithm.with-caption>.ps-line:first-child{border-bottom:2px solid #000}.ps-root .katex{text-indent:0;font-size:1em}.ps-root .MathJax,.ps-root .MathJax_CHTML{text-indent:0;font-size:1em!important}.ps-root .ps-line{margin:0;padding:0;line-height:1.2}.ps-root .ps-funcname{font-family:KaTeX_Main,'Times New Roman',Times,serif;font-weight:400;font-variant:small-caps;font-style:normal;text-transform:none}.ps-root .ps-keyword{font-family:KaTeX_Main,'Times New Roman',Times,serif;font-weight:700;font-variant:normal;font-style:normal;text-transform:none}.ps-root .ps-comment{font-family:KaTeX_Main,'Times New Roman',Times,serif;font-weight:400;font-variant:normal;font-style:normal;text-transform:none}.ps-root .ps-linenum{font-size:.8em;line-height:1em;width:1.6em;text-align:right;display:inline-block;position:relative;padding-right:.3em}.ps-root .ps-algorithmic.with-linenum .ps-line.ps-code{text-indent:-1.6em}.ps-root .ps-algorithmic.with-linenum .ps-line.ps-code>span{text-indent:0}.ps-root .ps-algorithmic.with-scopelines div.ps-block{border-left-style:solid;border-left-width:.1em;padding-left:.6em}.ps-root .ps-algorithmic.with-scopelines>div.ps-block{border-left:none} \ No newline at end of file +@import url(https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/katex.min.css);.ps-root{font-family:KaTeX_Main,'Times New Roman',Times,serif;font-size:1em;font-weight:100;-webkit-font-smoothing:antialiased!important}.ps-root .ps-algorithm{margin:.8em 0;border-top:3px solid #000;border-bottom:2px solid #000}.ps-root .ps-algorithm.with-caption>.ps-line:first-child{border-bottom:2px solid #000}.ps-root .katex{text-indent:0;font-size:1em}.ps-root .MathJax,.ps-root .MathJax_CHTML{text-indent:0;font-size:1em!important}.ps-root .ps-line{margin:0;padding:0;line-height:1.2}.ps-root .ps-funcname{font-family:KaTeX_Main,'Times New Roman',Times,serif;font-weight:400;font-variant:small-caps;font-style:normal;text-transform:none}.ps-root .ps-keyword{font-family:KaTeX_Main,'Times New Roman',Times,serif;font-weight:700;font-variant:normal;font-style:normal;text-transform:none}.ps-root .ps-comment{font-family:KaTeX_Main,'Times New Roman',Times,serif;font-weight:400;font-variant:normal;font-style:normal;text-transform:none}.ps-root .ps-linenum{font-size:.8em;line-height:1em;width:1.6em;text-align:right;display:inline-block;position:relative;padding-right:.3em}.ps-root .ps-algorithmic.with-linenum .ps-line.ps-code{text-indent:-1.6em}.ps-root .ps-algorithmic.with-linenum .ps-line.ps-code>span{text-indent:0}.ps-root .ps-algorithmic.with-scopelines div.ps-block{border-left-style:solid;border-left-width:.1em;padding-left:.6em}.ps-root .ps-algorithmic.with-scopelines>div.ps-block{border-left:none} \ No newline at end of file diff --git a/package.json b/package.json index ea07748..b81ed2d 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "browserify": "^17.0.0", "clean-css-cli": "^5.3.0", "eslint": "^8.25.0", - "katex": "^0.16.3", + "katex": "^0.16.7", "uglify-js": "^3.17.4", "watchify": "^4.0.0", "clean-css": "^5.2.4" diff --git a/static/katex.html.part b/static/katex.html.part index 81a0877..1bc06c1 100644 --- a/static/katex.html.part +++ b/static/katex.html.part @@ -6,8 +6,9 @@ pseudocode.js Samples with KaTeX - diff --git a/static/mathjax-v2.html.part b/static/mathjax-v2.html.part index 26ce1dc..41a96ba 100644 --- a/static/mathjax-v2.html.part +++ b/static/mathjax-v2.html.part @@ -6,7 +6,9 @@ pseudocode.js Samples with MathJax - - diff --git a/static/pseudocode.css b/static/pseudocode.css index 1a5fe61..0bf0aca 100644 --- a/static/pseudocode.css +++ b/static/pseudocode.css @@ -1,4 +1,4 @@ -@import url('https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.11.1/katex.min.css'); +@import url('https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/katex.min.css'); .ps-root { font-family: KaTeX_Main, 'Times New Roman', Times, serif;