mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-17 16:58:41 +00:00
* website/docs: initial commit * Change secondaryColor * Fix index.css not being copied and included on global stylesheet * Fix stylesheet link [skip ci] * Change documentation link to API(Usage) [skip ci] * Add `Libraries` in usage [skip ci] * Remove documentation from `README.md` and add link to the site [skip ci] * Use KaTeX in the parent directory to build Markdown [skip ci] * Revise function support page. Avoid error msgs. * General edit to function support page
32 lines
1.5 KiB
Markdown
32 lines
1.5 KiB
Markdown
---
|
|
id: browser
|
|
title: Browser
|
|
---
|
|
> KaTeX supports all major browsers, including Chrome, Safari, Firefox, Opera, Edge, and IE 9 - IE 11.
|
|
|
|
## CDN(Content Delivery Network)
|
|
Use CDN to deliver KaTeX to your project:
|
|
|
|
```html
|
|
<script src="https://cdn.jsdelivr.net/npm/katex@0.10.0-beta/dist/katex.js" integrity="sha256-9uW7yW4EwdUyWU2PHu+Ccek7+xbQpDTDS5OBP0qDrTM=" crossorigin="anonymous"></script>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0-beta/dist/katex.css" integrity="sha256-T4bfkilI7rlQXG1R8kqn+FGhe56FhZmqmp9x75Lw4s8=" crossorigin="anonymous">
|
|
```
|
|
|
|
KaTeX also provides minified versions:
|
|
|
|
```html
|
|
<script src="https://cdn.jsdelivr.net/npm/katex@0.10.0-beta/dist/katex.min.js" integrity="sha256-mxaM9VWtRj1wBtn50/EDUUe4m3t39ExE+xEPyrxVB8I=" crossorigin="anonymous"></script>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0-beta/dist/katex.min.css" integrity="sha256-sI/DdD47R/Sa54XZDNFjRWlS+Dv8MC5xfkqQLRh0Jes=" crossorigin="anonymous">
|
|
```
|
|
|
|
## Download & Host Things Yourself
|
|
Download the latest version from [here](https://github.com/Khan/KaTeX/releases),
|
|
copy `katex.js`, `katex.css`(or `katex.min.js` and `katex.min.css` to use minified
|
|
versions) and `fonts` from `/katex`, and include like above.
|
|
|
|
## Bundler
|
|
Use [`Node.js` package managers](node.md) to install KaTeX and require it in your
|
|
project. Then bundle using bundlers like [webpack](https://webpack.js.org/) or
|
|
[rollup.js](https://rollupjs.org/). Note that you have to bundle the stylesheet(`katex.css`)
|
|
or include it manually.
|