|
1 | 1 | # LaTeX Renderer |
2 | 2 | This is a [BetterDiscord](https://betterdiscord.app/) plugin using [MathJax](https://www.mathjax.org/) to natively render LaTeX math equations inside Discord. |
3 | 3 |
|
4 | | -# Usage |
5 | | -You need to use simple or double dollars inside a Discord inline code (this is to prevent markdown interpretation of special characters). |
| 4 | +## Usage |
| 5 | +You need to use simple or double dollars inside a Discord inline or mutiline code block (this is to prevent markdown interpretation of special characters). |
| 6 | +You can also use `\( \)` and `\[ \]`. |
6 | 7 |
|
7 | 8 | Examples (just copy-paste) |
8 | 9 | - Inline: `` I want to say `$\forall x\in\mathbb{N}, x\ge 0$` ! `` |
| 10 | +- Inline: `` I want to say `\(\forall x\in\mathbb{N}, x\ge 0\)` ! `` |
| 11 | +- Inline: `` I want to say ```$\forall x\in\mathbb{N}, x\ge 0$``` ! `` |
| 12 | +- Inline: `` I want to say ```\(\forall x\in\mathbb{N}, x\ge 0\)``` ! `` |
9 | 13 | - Block: `` Voilà: `$$\int_0^\infty e^{-x^2}dx=\frac{\sqrt{\pi}}{2}$$` `` |
| 14 | +- Block: `` Voilà: `\[\int_0^\infty e^{-x^2}dx=\frac{\sqrt{\pi}}{2}\]` `` |
| 15 | +- Block: `` Voilà: ```$$\int_0^\infty e^{-x^2}dx=\frac{\sqrt{\pi}}{2}$$``` `` |
| 16 | +- Block: `` Voilà: ```\[\int_0^\infty e^{-x^2}dx=\frac{\sqrt{\pi}}{2}\]``` `` |
10 | 17 |
|
11 | | -# Installation |
12 | | -You can manually download the plugin here |
13 | | -- Remote: [src/LaTeX-remote.plugin.js](src/LaTeX-remote.plugin.js) |
14 | | -- Bundled: [dist/LaTeX.plugin.js](dist/LaTeX.plugin.js) |
| 18 | +## Installation |
| 19 | +Download the plugin on [BetterDiscord's website](https://betterdiscord.app/plugin/LaTeX%20Renderer). |
| 20 | + |
| 21 | +You can also download latest here [dist/LaTeX.plugin.js](dist/LaTeX.plugin.js) |
15 | 22 |
|
16 | 23 | Simply put it in BetterDiscord's plugin folder |
17 | 24 |
|
18 | | -## Building local version |
19 | | -Run `npm install` and `npm run build` |
| 25 | +## Building the plugin |
| 26 | +Simply clone the repo then run `npm install` and `npm run build` |
20 | 27 |
|
21 | | -Then put `dist/LaTeX.plugin.js` in BetterDiscord's plugin folder. |
| 28 | +Then put `dist/LaTeX.plugin.js` in BetterDiscord's plugin folder. |
0 commit comments