https://github.com/binaryquantumsoul/discord-latex
BetterDiscord plugin using MathJax to render LaTeX
https://github.com/binaryquantumsoul/discord-latex
betterdiscord betterdiscord-plugin discord latex mathjax tex
Last synced: about 2 months ago
JSON representation
BetterDiscord plugin using MathJax to render LaTeX
- Host: GitHub
- URL: https://github.com/binaryquantumsoul/discord-latex
- Owner: BinaryQuantumSoul
- License: apache-2.0
- Created: 2023-06-29T10:23:54.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-15T07:08:03.000Z (10 months ago)
- Last Synced: 2025-03-28T14:39:18.754Z (2 months ago)
- Topics: betterdiscord, betterdiscord-plugin, discord, latex, mathjax, tex
- Language: JavaScript
- Homepage:
- Size: 809 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LaTeX Renderer
This is a [BetterDiscord](https://betterdiscord.app/) plugin using [MathJax](https://www.mathjax.org/) to natively render LaTeX math equations inside Discord.## Usage
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).
You can also use `\( \)` and `\[ \]`.Examples (just copy-paste)
- Inline: `` I want to say `$\forall x\in\mathbb{N}, x\ge 0$` ! ``
- Inline: `` I want to say `\(\forall x\in\mathbb{N}, x\ge 0\)` ! ``
- Inline: `` I want to say ```$\forall x\in\mathbb{N}, x\ge 0$``` ! ``
- Inline: `` I want to say ```\(\forall x\in\mathbb{N}, x\ge 0\)``` ! ``
- Block: `` Voilà: `$$\int_0^\infty e^{-x^2}dx=\frac{\sqrt{\pi}}{2}$$` ``
- Block: `` Voilà: `\[\int_0^\infty e^{-x^2}dx=\frac{\sqrt{\pi}}{2}\]` ``
- Block: `` Voilà: ```$$\int_0^\infty e^{-x^2}dx=\frac{\sqrt{\pi}}{2}$$``` ``
- Block: `` Voilà: ```\[\int_0^\infty e^{-x^2}dx=\frac{\sqrt{\pi}}{2}\]``` ``## Installation
Download the plugin on [BetterDiscord's website](https://betterdiscord.app/plugin/LaTeX%20Renderer).You can also download latest here [dist/LaTeX.plugin.js](dist/LaTeX.plugin.js)
Simply put it in BetterDiscord's plugin folder
## Building the plugin
Simply clone the repo then run `npm install` and `npm run build`Then put `dist/LaTeX.plugin.js` in BetterDiscord's plugin folder.