Commit Graph

20 Commits

Author SHA1 Message Date
Neil Lalonde 2e62867df2 Update translations 2019-04-05 10:15:46 -04:00
Neil Lalonde e6ec5d4fd7 Update translations 2019-03-11 14:04:46 -04:00
Daniel Hollas dce1a1b0a1 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-05 07:35:00 +11:00
Neil Lalonde 41341b552c Update translations 2019-01-31 16:36:43 -05:00
Neil Lalonde 50595b758b Update translations 2018-11-29 11:08:54 -05:00
Neil Lalonde d53c0bad11 Update translations 2018-09-10 14:02:22 -04:00
Neil Lalonde 8288c53965 Update translations 2018-08-23 09:49:12 -04:00
Neil Lalonde 3ee5e722a6 Update translations 2018-05-31 15:31:39 -04:00
mcmcclur 05d52f593f Add asciimath processing (#10)
This version sets the new asciimath parsing to be an option. It also deals with the old zoom_on_hover and enable_accessibility options a bit better.
2018-05-29 08:54:56 +10:00
Neil Lalonde 5588d2ba65 Update translations 2018-04-24 10:32:28 -04:00
Neil Lalonde 82cb897b4d Update translations 2018-03-07 14:18:54 -05:00
Neil Lalonde a7414b6cab Update translations 2018-01-31 11:14:33 -05:00
Neil Lalonde d605568142 Update translations 2018-01-03 13:27:41 -05:00
Neil Lalonde df998c4e78 Update translations 2017-12-29 16:41:17 -05:00
Neil Lalonde 89e1ae75f1 Transifex integration 2017-12-08 14:54:35 -05:00
mcmcclur 611840a32d Add options for zoom and accessibility (#6)
* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload
2017-07-28 16:14:55 -04:00
SidV 892971c3cc Create server.es.yml (#2)
* Create server.es.yml

* Update server.es.yml
2017-07-20 14:42:51 +02:00
Risto 70ace99c77 Update server.fi.yml 2017-07-16 21:26:49 +03:00
Risto 226d546fdd Create server.fi.yml 2017-07-16 20:37:22 +03:00
Sam 5b22a196fa Initial commit 2017-07-06 16:50:38 -04:00