File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 41
41
"@types/hast" : " ^2.0.0" ,
42
42
"@types/katex" : " ^0.11.0" ,
43
43
"hast-util-to-text" : " ^3.1.0" ,
44
- "katex" : " ^0.13 .0" ,
44
+ "katex" : " ^0.15 .0" ,
45
45
"rehype-parse" : " ^8.0.0" ,
46
46
"unified" : " ^10.0.0" ,
47
47
"unist-util-remove-position" : " ^4.0.0" ,
Original file line number Diff line number Diff line change 22
22
* [ CSS] ( #css )
23
23
* [ Syntax tree] ( #syntax-tree )
24
24
* [ Types] ( #types )
25
+ * [ Compatibility] ( #compatibility )
25
26
* [ Security] ( #security )
26
27
* [ Related] ( #related )
27
28
* [ Contribute] ( #contribute )
@@ -102,7 +103,7 @@ async function main() {
102
103
.use (rehypeParse, {fragment: true })
103
104
.use (rehypeKatex)
104
105
.use (rehypeDocument, {
105
- css: ' https://cdn.jsdelivr.net/npm/katex@0.13.13 /dist/katex.min.css'
106
+ css: ' https://cdn.jsdelivr.net/npm/katex@0.15.0 /dist/katex.min.css'
106
107
})
107
108
.use (rehypeStringify)
108
109
.process (await read (' example.html' ))
@@ -120,7 +121,7 @@ Now running `node example.js` yields:
120
121
<meta charset =" utf-8" >
121
122
<title >example</title >
122
123
<meta name =" viewport" content =" width=device-width, initial-scale=1" >
123
- <link rel =" stylesheet" href =" https://cdn.jsdelivr.net/npm/katex@0.13.13 /dist/katex.min.css" >
124
+ <link rel =" stylesheet" href =" https://cdn.jsdelivr.net/npm/katex@0.15.0 /dist/katex.min.css" >
124
125
</head >
125
126
<body >
126
127
<p >
@@ -160,7 +161,7 @@ style it properly.
160
161
At the time of writing, the last version is:
161
162
162
163
``` html
163
- <link rel =" stylesheet" href =" https://cdn.jsdelivr.net/npm/katex@0.13.13 /dist/katex.min.css" integrity =" sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin =" anonymous" >
164
+ <link rel =" stylesheet" href =" https://cdn.jsdelivr.net/npm/katex@0.15.0 /dist/katex.min.css" integrity =" sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin =" anonymous" >
164
165
```
165
166
166
167
## Syntax tree
Original file line number Diff line number Diff line change 26
26
"dependencies" : {
27
27
"@types/katex" : " ^0.11.0" ,
28
28
"@types/mdast" : " ^3.0.0" ,
29
- "katex" : " ^0.13 .0" ,
29
+ "katex" : " ^0.15 .0" ,
30
30
"rehype-parse" : " ^8.0.0" ,
31
31
"unified" : " ^10.0.0" ,
32
32
"unist-util-remove-position" : " ^4.0.0" ,
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ Now running `node example.js` yields:
108
108
> properly:
109
109
>
110
110
> ``` html
111
- > <link rel =" stylesheet" href =" https://cdn.jsdelivr.net/npm/katex@0.13.13 /dist/katex.min.css" integrity =" sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin =" anonymous" >
111
+ > <link rel =" stylesheet" href =" https://cdn.jsdelivr.net/npm/katex@0.15.0 /dist/katex.min.css" integrity =" sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin =" anonymous" >
112
112
> ```
113
113
114
114
### Example: MathJax
You can’t perform that action at this time.
0 commit comments