Skip to content

Commit

Permalink
rehype-katex: update katex
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 11, 2021
1 parent b2066bb commit fa4ada1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/rehype-katex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@types/hast": "^2.0.0",
"@types/katex": "^0.11.0",
"hast-util-to-text": "^3.1.0",
"katex": "^0.13.0",
"katex": "^0.15.0",
"rehype-parse": "^8.0.0",
"unified": "^10.0.0",
"unist-util-remove-position": "^4.0.0",
Expand Down
7 changes: 4 additions & 3 deletions packages/rehype-katex/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* [CSS](#css)
* [Syntax tree](#syntax-tree)
* [Types](#types)
* [Compatibility](#compatibility)
* [Security](#security)
* [Related](#related)
* [Contribute](#contribute)
Expand Down Expand Up @@ -102,7 +103,7 @@ async function main() {
.use(rehypeParse, {fragment: true})
.use(rehypeKatex)
.use(rehypeDocument, {
css: 'https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.css'
css: 'https://cdn.jsdelivr.net/npm/katex@0.15.0/dist/katex.min.css'
})
.use(rehypeStringify)
.process(await read('example.html'))
Expand All @@ -120,7 +121,7 @@ Now running `node example.js` yields:
<meta charset="utf-8">
<title>example</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.15.0/dist/katex.min.css">
</head>
<body>
<p>
Expand Down Expand Up @@ -160,7 +161,7 @@ style it properly.
At the time of writing, the last version is:

```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.css" integrity="sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.15.0/dist/katex.min.css" integrity="sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin="anonymous">
```

## Syntax tree
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-html-katex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dependencies": {
"@types/katex": "^0.11.0",
"@types/mdast": "^3.0.0",
"katex": "^0.13.0",
"katex": "^0.15.0",
"rehype-parse": "^8.0.0",
"unified": "^10.0.0",
"unist-util-remove-position": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Now running `node example.js` yields:
> properly:
>
> ```html
> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.css" integrity="sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin="anonymous">
> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.15.0/dist/katex.min.css" integrity="sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin="anonymous">
> ```
### Example: MathJax
Expand Down

0 comments on commit fa4ada1

Please sign in to comment.