LaTeX math wherever you want.
Purple Pi is a browser extension for Google Chrome that renders LaTeX-style mathematics on pages that don't otherwise support it. Examples are GitHub READMEs and Wikis or StackOverflow posts.
Simply install the extension from the
and enjoy.
Let
is completely contained in
On GitHub (READMEs, Wikis, Issues etc.), LaTeX inline and display formulas are supported using native syntax, i.e.:
Some inline math: $`x\in R`$.
Some display-style math:
```math
e^i + 1 = 0
```
GitLab uses the same syntax.
Purple Pi also runs on pages which contain the activation link
https://github.com/nschloe/purple-pi?activate
You can then use the classical $...$
notation for inline and $$...$$
for
display math. You can add it as an <a>
tag
Rendered with <a href="https://github.com/nschloe/purple-pi?activate">Purple Pi</a>.
or as a badge
[![purple-pi](https://img.shields.io/badge/Rendered%20with-Purple%20Pi-bd00ff?style=flat-square)](https://github.com/nschloe/purple-pi?activate)
The extension will then inject KaTeX into the page.
To build the production zip, simply install the dependencies (npm ci
), then run
npm run build
npm ci
npm run watch
The unpacked development version of the extension will then be in dist/
. Open Google
Chrome, go to chrome://extensions
and Load unpacked
this directory. Reload as
necessary.
- Not working on mobile. (No extensions there.)
- No extension works on the Chrome Web Store itself
- Boris Gromov's Wikipedia with MathJax
- Or Sharir's MathJax Plugin for Github
- Ellis Michael's TeX All the Things
- Aaron Choo's KaTeX GitHub Chrome Extension
This software is published under the GPLv3 license.