Logo
Explore Help
Sign In
discourse/discourse-math
1
0
Fork 0
You've already forked discourse-math
mirror of https://github.com/discourse/discourse-math.git synced 2025-10-25 11:28:42 +00:00
Code Issues Packages Projects Releases Wiki Activity
discourse-math/README.md

6 lines
131 B
Markdown
Raw Normal View History

Initial commit
2017-07-06 16:50:38 -04:00
## Discourse Math plugin
FEATURE: Add KaTeX rendering support (#15) * FEATURE: Add KaTeX in-browser rendering support. * Remove ttf fonts from KaTeX * Update KaTeX to v0.10.1, fix paths to fonts. Font loading was fixed by rebuilding KaTeX and specifiying absolute paths to fonts in CSS: Steps to build KaTeX: 1. `git clone https://github.com/KaTeX/KaTeX.git && cd KaTeX` `git submodule update --init --recursive` 2. Change paths to fonts: `sed -ri 's/@font-folder.+$/@font-folder: "\/plugins\/discourse-math\/katex\/fonts";/' submodules/katex-fonts/fonts.less` 3. Disable TTF fonts: `export USE_TTF=false` Alternatively, we could modify `.browserslistrc` to match what Discourse supports 3. Build KaTeX `yarn && yarn builld` 4. Copy `katex.min.js` and `katex.min.css` from `dist/` to `discourse-math/public/katex/` 5. Update fonts, copy woff and woff2 files from `submodules/katex-fonts/fonts` * Minor copy edit to settings Mark MathKJax only settings * Add Mhchem extension for KaTeX. It is already automatically loaded for MathJaX.
2019-03-04 21:35:00 +01:00
Adds LaTeX support to your Discourse instance.
add link
2017-07-06 17:35:22 -04:00
https://meta.discourse.org/t/discourse-math-plugin/65770
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 42ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API