Skip to content

Commit

Permalink
refer to katex docs for css link
Browse files Browse the repository at this point in the history
  • Loading branch information
victor23k committed Oct 5, 2023
1 parent a2c8693 commit 7ea993b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/guides/math.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ console.log(
<Note type="important">
**Important**: if you chose `rehype-katex`, you should also use `katex.css`
somewhere on the page to style math properly.
At the time of writing, the last version is:

```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin="anonymous">
```
To get the latest link to the stylesheet, go to [`katex docs`][katex docs].
</Note>

<Note type="info">
Expand All @@ -95,3 +91,5 @@ console.log(
[options-rehype-plugins]: /packages/mdx/#optionsrehypeplugins

[extend]: /docs/extending-mdx/

[katex docs]: https://katex.org/docs/browser#loading-as-global

0 comments on commit 7ea993b

Please sign in to comment.