The chemical and mathematical formula inspectors and dialogs
have a lot of similar functionality, and the common parts are
now moved to the common MWLatex class.
MWMath* classes now inherit from MWLatex*, and so do
the new MWChem* classes.
Bug: T153365
Change-Id: I4452ceca55197fda5f1e1293a5741c6f5fb7c245
Follows-up 946a18d1, which accidentally added a scripts module
to the styles queue (which is a no-op).
Fixes the following debug warning:
> Unexpected general module "ext.math.scripts" in styles queue.
Bug: T158376
Change-Id: Id026fbaa48cfab582b192bc0974ba7c6f01f37d0
Use of &$this doesn't work in PHP 7.1. For callbacks to methods like
array_map() it's completely unnecessary, while for hooks we still need
to pass a reference and so we need to copy $this into a local variable.
Bug: T153505
Change-Id: Ib31f3bbffdd6b25ad9a21498294644e4dde33bd1
Add a sanity check to the math extension that skips shelling out to
texvc if the input is insanely large.
Bug: T129506
Change-Id: I2c7b6561464bddb4c3eab9230fa8168b24adaa37
There are separate JS files for them, so the CSS should be separate, too.
This is a part of the refactoring that is required for bug T153365.
Change-Id: Iadbe5eeccff25ed1d184658945a4eb52e465d863
Add mwe-math-element class attribute to the outermost element
holding mathematical expressions. Add a css rule that adds a
scrollbar to the element in case it's a div, which is the case
for displaystyle formulae.
Note, there will be no scroll bar if long formulae are not
explicitly marked up das displaystyle formulae.
Bug: T134281
Change-Id: Iba462601bb15f8667d1284282ba4f6c2020a02b9
This reverts commit e674d7e73b.
That commit does not help to solve T134281.
It adds a CSS class name which is configurable
by a global variable to various math elements, which is confusing.
Change-Id: Iea5f231e0cea1221dc717b3409b36c0baf11bb24
The pattern "*.mli" was incorrectly added to texvccheck/.gitignore by
4c9dc2f08e with the comment "Compiled
source". As with d9a7da14f1, .mli files
define the interfaces for the corresponding .ml module and thus should
not be ignored.
The only exception to this is parser.mli which is generated by the
ocamlyacc from the parser.mly definition, so this change only ignores
those files.
Change-Id: I263df70e58fb14a7228c32d5c985ff7f1b841891
The script has a syntax error, the program tex2svg is not contained in
this repository, "texvc" should probably be "texvccheck", and the
result of this invocation is thrown away, thus always outputting
"bad".
Change-Id: I9ca0324d58f81dbb9e1bfb31e677fc877172675f