Commit graph

692 commits

Author SHA1 Message Date
Catrope 4c9e7dbe76 Merge "Disable dangerous \href and \style commands" 2012-04-25 18:57:40 +00:00
Demon cb263d5b7e Merge "Update math parser test cases for new rendering defaults" 2012-04-23 18:30:47 +00:00
Translation updater bot 2525e2d519 Localisation updates from http://translatewiki.net.
Change-Id: I2d7f96395abedd27b90b5bea0735e885f0577a51
2012-04-21 18:55:25 +00:00
Translation updater bot e38262caa9 Localisation updates from http://translatewiki.net.
Change-Id: I4b6ba944af00ce0e6a40567e6a5ba6d8c3be371e
2012-04-19 21:44:50 +00:00
Translation updater bot a5e91f78ac Localisation updates from http://translatewiki.net.
Change-Id: I446c497636276c33201bf5f155db8af22f2851af
2012-04-18 20:24:46 +00:00
Brion Vibber 6e110abf85 Disable dangerous \href and \style commands
MathJax's TeX input by default includes \href and \style commands, which can be
used to inject JavaScript and web bugs. Disabling them by overriding them with
named function macros.

Change-Id: Id21253e9d1621b5ec4e93e28361c498c484b1b7b
2012-04-18 11:14:26 -07:00
Translation updater bot c8a38b69bb Localisation updates from http://translatewiki.net.
Change-Id: I69ba0c588703c82fd5fca6b93e8017bf6919d11b
2012-04-16 16:11:54 +00:00
Suhas e5e574604b Bug 31824: Fix for the empty math tag
It fixes the bug by returning an empty string if the math tag is
empty.

Parser tests and changes so that white-text only works.

Change-Id: Ica0dbb9bcfc709331e348fb11d24673103be3b37
2012-04-08 11:50:52 -04:00
Brion Vibber c4137dcbfd Update math parser test cases for new rendering defaults
Previous parser tests assumed the older options which turned some simple bits into HTML, while new default runs everything through images.

Change-Id: I894ea42947da66f93272c56ef89b4357724ec3b9
2012-04-06 15:16:53 -07:00
Mark A. Hershberger c005843d62 w/s and spelling
Change-Id: Iaa5ef4ff534c60ac8de264253edc077005ed5ab0
2012-04-06 11:19:12 -04:00
Brion VIBBER f1a0b5c254 Merge "Remove textcolor macro. It was just a hack to make the colors work." 2012-03-26 22:42:38 +00:00
Derk-Jan Hartman f0c2308047 "\displaystyle" does not need curly braces as it does not take a parameter.
Thanks to User:Nageh for providing feedback:
https://en.wikipedia.org/wiki/Wikipedia_talk:WikiProject_Mathematics/Archive/2012/Mar#mathJax_progress

Change-Id: I52781773c7146f87a839720867a49f1dd6d74483
2012-03-27 00:39:55 +02:00
Derk-Jan Hartman 2205264ada Remove textcolor macro. It was just a hack to make the colors work.
Change-Id: Ifbb05f3750075cbb4104bba5d1ef865fee8857e5
2012-03-27 00:22:22 +02:00
Brion VIBBER 7756451286 Merge "Adding arccot, arcsec and arccsc for bug 35186." 2012-03-26 22:00:12 +00:00
Derk-Jan Hartman ef921fc4ef Load the TeX extension cancel, because it is supported by texvc and in use on wiki. Fixes part of Bug 35186
Change-Id: Icfb2894e4f755ae364a29bcace3e1d14b52c9e87
2012-03-26 23:36:14 +02:00
Derk-Jan Hartman 5013c60be1 Adding arccot, arcsec and arccsc for bug 35186.
This says to treat these commands as Named functions, just as arcsin, arctan etc.

Change-Id: Ib11d9cb99f4ced0a063fd0913b9cacf544049f36
2012-03-26 23:21:33 +02:00
Brion VIBBER 58e2a0796c Merge "Adding the tex colors to our texvc configuration, Fixes the lacking colors as pointed out in bug 35186." 2012-03-26 21:05:50 +00:00
Demon 963bb1ee5b Merge "Adding some gitignore to the math directory, to ignore the compiled binaries and intermediary objects." 2012-03-26 13:14:47 +00:00
Derk-Jan Hartman e592db16e7 Adding the tex colors to our texvc configuration, Fixes the lacking colors as pointed out in bug 35186.
We can remove the pre mathjax 2.0 color hack now that the color extensions is enabled.

Change-Id: I7863e3131689b2140e31cd09a3d663113f686b83
2012-03-26 00:09:56 +02:00
Derk-Jan Hartman 159708754c Adding some gitignore to the math directory, to ignore the compiled binaries and intermediary objects.
Change-Id: Ifcab01b5a67a8da65f8522cc00f2ae00e74a915a
2012-03-25 21:13:52 +02:00
Derk-Jan Hartman 0cea0bffb5 Let the html output of our tex and mathjax mode inherit attributes such as style.
Required in order to fix bug 35191

Change-Id: Ia267aa211cb1bcb2023cd3f87bbc83c983ffc91f
2012-03-25 21:06:04 +02:00
Peter Gehres b9f87bb400 Adding .gitreview
Change-Id: I1e9026cc39646d781385d20922ebc5192e3af86a
2012-03-23 10:30:45 -07:00
Raimond Spekking 95dc600e32 Localisation updates for core and extension messages from translatewiki.net 2012-03-18 20:13:19 +00:00
Raimond Spekking cd953e37f7 Localisation updates for core and extension messages from translatewiki.net 2012-03-13 20:50:02 +00:00
Brion Vibber b572b021b9 followup r113661 - fix for renamed func 2012-03-12 20:59:32 +00:00
Brion Vibber a2cc731964 drop empty diretories in MathJax 2012-03-12 20:54:59 +00:00
Brion Vibber 7335093337 use pre-minified MathJax files, they load faster 2012-03-12 20:54:04 +00:00
Raimond Spekking 23776c80eb Localisation updates for core and extension messages from translatewiki.net 2012-03-12 20:46:25 +00:00
Brion Vibber c89a0003f1 tweaks to MathJax setup & customizations from mathjax-users list
Some fixes, cleanup, and modernization
2012-03-12 20:41:43 +00:00
Raimond Spekking 430b958d1a Localisation updates for core and extension messages from translatewiki.net 2012-03-11 20:39:18 +00:00
Raimond Spekking e75d49beb2 Localisation updates for core and extension messages from translatewiki.net 2012-03-09 22:30:45 +00:00
Alexandre Emsenhuber 6930c81c17 svn:eol-style native 2012-03-08 12:27:02 +00:00
Raimond Spekking 5156496b80 Localisation updates for core and extension messages from translatewiki.net 2012-03-07 21:06:01 +00:00
Brion Vibber 87cbb1f4c8 MathJax loading fixes from mathjax-users list:
* fix for $ stripping in IE
* wrap everything in {} for \displaystyle
2012-03-07 19:33:08 +00:00
Brion Vibber b93e71e0ae fix for MathJax zoom setting: should be 'Click' not 'click'
[per feedback on mathjax-users list]
2012-03-07 00:06:40 +00:00
Brion Vibber 261310bad9 Tweak MathJax loading per recommendations from mathjax-users list:
* drop some of the init lines that don't appear to work/be needed
* only load MathJax.js through ResourceLoader; let MathJax's loader handle the rest

This gets us working in Chrome, where previously we hadn't initialized correctly. Should also help in IE, still needs testing.
Will probably want to swap in the pre-minimized versions of the files at some point, but the expanded ones are fine at this stage of work.
2012-03-06 21:57:12 +00:00
Raimond Spekking 11ef4d7a9a Localisation updates for core and extension messages from translatewiki.net 2012-03-06 21:18:30 +00:00
Alexandre Emsenhuber a0a66ebf63 Fix some svn:mime-type with value "application/octet-stream" to more specific values 2012-03-06 18:09:12 +00:00
Brion Vibber 2be6ad801a Avoid conflict between MathJax's TeX finder and our own: remove theirs so we don't end up putting preview markup inside other markup 2012-03-05 22:45:56 +00:00
Brion Vibber 829372f32d update copyright notice years for 2012 2012-03-05 22:25:09 +00:00
Brion Vibber e85a658c2f switch two files in MathJax setup that were incorrectly split to the wrong filenames :) 2012-03-05 22:24:54 +00:00
Raimond Spekking c0b056c4b8 Localisation updates for core and extension messages from translatewiki.net 2012-03-05 21:20:53 +00:00
Brion Vibber 2af7057b05 Set up MathJax as a selectable option in math preferences 2012-03-05 20:34:29 +00:00
Brion Vibber a4c39f94a6 remove stub file -- unneeded as it's been expanded into other files 2012-03-05 19:51:17 +00:00
Raimond Spekking 84ac48ee46 Localisation update for core and extension messages from translatewiki.net 2012-03-03 21:32:20 +00:00
Brion Vibber d84a00a9ed * (bug 34828) Fix MathJax initializer to operate on images as well as text form
Warning: this piggybacks on 'alt' text and can be broken if a manual alt text was specified on a <math> bit. Needs to be more nativey.
Also cleaned up the conditional setup code since we're already only called when a <math> is present.
2012-03-02 00:26:56 +00:00
Brion Vibber 296b767c62 uncomment a couple bits in mathjax setup that had been disabled while fiddling 2012-03-02 00:07:32 +00:00
Raimond Spekking e152061459 Localisation update for core and extension messages from translatewiki.net 2012-03-01 22:21:50 +00:00
Brion Vibber b7c09b58c3 fixes to mathjax loading that somehow didn't get committed yesterday? 2012-03-01 21:13:10 +00:00
Brion Vibber f8ad1f3e86 Fix for font path on MathJax 2.0 2012-03-01 02:00:16 +00:00