mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 19:28:39 +00:00
Point to CDNJS in README
Test Plan: http://jsbin.com/mirumuyeku/edit?html,js,output Auditors: emily
This commit is contained in:
@@ -11,11 +11,11 @@ KaTeX supports all major browsers, including Chrome, Safari, Firefox, Opera, and
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Download the built files from [the releases page](https://github.com/khan/katex/releases). Include the `katex.min.js` and `katex.min.css` files on your page:
|
You can [download KaTeX](https://github.com/khan/katex/releases) and host it on your server or include the `katex.min.js` and `katex.min.css` files on your page directly from a CDN:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<link rel="stylesheet" href="/path/to/katex.min.css">
|
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.1.1/katex.min.css">
|
||||||
<script src="/path/to/katex.min.js"></script>
|
<script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.1.1/katex.min.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
Call `katex.render` with a TeX expression and a DOM element to render into:
|
Call `katex.render` with a TeX expression and a DOM element to render into:
|
||||||
|
Reference in New Issue
Block a user