Commit Graph

60 Commits

Author SHA1 Message Date
Lukas Drgon
0f17ac5080 Change CDN links (#1243) 2018-04-04 21:54:00 +09:00
dudko
f35c41883c List react-katex in Libraries (#1236)
* List react-katex in Libraries

* Added react-latex

* Fix capitalization

* Move React libraries above Ruby library
2018-03-31 09:33:01 -04:00
Erik Demaine
aed1c1e564 unicodeTextInMathMode setting (#1117)
* unicodeTextInMathMode setting

* When `unicodeTextInMathMode` is `true`, accented letters from
  `unicodeSymbols.js`, and CJK and other supported languages,
  get added support in math mode (as requested in #895).
* When `unicodeTextInMathMode` is `false, all of these stop working in
  math mode, and are only supported in text mode (matching XeTeX behavior).
  Note that this is a backwards incompatibility with some 0.9.0 alpha/betas.

* Fix handling of Unicode characters ð, Å, å

* Fix double handling of ð (math maps to \eth, not special Unicode character)
* Remove Åå special math handling, thanks to #1125

* Forbid extraLatin when unicodeTextInMathMode is false
2018-02-19 21:25:20 -05:00
Kevin Barabash
298b482c18 Bump master to v0.10.0-pre 2018-02-18 16:55:16 -05:00
Erik Demaine
0854bb9f15 Add a paragraph about injection safety (#1161)
* Add a paragraph about injection safety

* Rewrite into Security and Handling errors

* minor edits to the suggested whitelist
2018-02-17 14:48:33 -05:00
Kevin Barabash
f977c25d0d set up code coverage (#1140)
* set up code coverage

* add coverage badge
2018-02-05 09:33:31 -05:00
Kevin Barabash
cf6743b2a8 Bump master to v0.10.0-pre 2018-01-28 23:41:01 -05:00
Gleb Mazovetskiy
ffcbaf1b98 Add katex-ruby to the libraries list (#1067) 2018-01-16 21:40:23 -05:00
Kevin Barabash
0599e09a2d Bump master to v0.10.0-pre 2018-01-14 17:39:59 -05:00
Kevin Barabash
d470cc0b3f Add a 'common issues' section to the README (#1034) 2017-12-27 08:51:20 -08:00
Kevin Barabash
2ca6c3c73b Bump master to v0.10.0-pre 2017-11-26 18:34:59 -05:00
Erik Demaine
ecad4de4ce Single-character macros like active characters (#973)
* Single-character macros like active characters

* Rewrite README according to @kevinbarabash's comment
2017-11-24 13:40:23 -05:00
Sergio García Prado
067697e2e5 Added ng-katex link to readme.md (#959) 2017-11-11 18:28:03 -05:00
Kevin Barabash
b4c5dfaf20 Bump master to v0.10.0-pre 2017-10-15 16:49:24 -04:00
Ron Kok
49f95e61eb Edit link to Function Support page (#922)
On README, change a link from the wiki's function support page to the HTML function support page.
2017-10-09 07:35:30 -04:00
Kevin Barabash
2e27d4248b Bump master to v0.10.0-pre 2017-10-05 11:40:49 -06:00
Xuming Zeng
211c86d39b Add a maxSize option to limit user-specified sizes (#803)
* Fix color support for stretchy, strikethrough, and fbox
Summary:
Stuff like `\red{\overbrace{AB}}` works now in addition to `\color{red}{\overbrace{AB}}`. Strikethrough now respects color. The Firefox in the screenshotter doesn't seem to support `background-image` + `mask`, but I manually tested that the latest Firefox does.

Test plan:
Ran `make`, then tested in latest Chrome and Firefox to ensure color support was working, then ran `make screenshots`.

* Add a maxSize option to limit user-specified sizes (#109)

* Simplify maxSize logic and add unit test
* Clamp negative maxSize to zero
* Use a default maxSize of infinity to remove branching in calculateSize
2017-08-31 06:39:28 -04:00
Kevin Barabash
96c1fe7ad8 Bump master to v0.8.4-pre 2017-08-27 18:01:07 -04:00
Kevin Barabash
2cd961dbe0 Bump master to v0.8.3-pre 2017-08-17 01:13:27 -04:00
Kevin Barabash
ef66f30912 Bump master to v0.8.2-pre 2017-08-11 22:14:52 -04:00
Kevin Barabash
107d5284b5 Bump master to v0.9.0-pre 2017-08-11 20:00:34 -04:00
Erik Demaine
a0bedcce8e Support absolute TeX units (#732)
* Support absolute TeX units

* Implement @kohler's comments

* Rewrite unit documentation according to @kohler's comments
2017-08-11 18:30:06 -04:00
Ron Kok
4f57d53f6e Show correct browser support (#737)
* Show correct browser support

KaTeX runs in IE 9 but not in IE 8. This PR edits the README and
Contributing files to reflect that fact.

Resolves issue #377.

* Show correct browser support

KaTeX runs in IE 9 but not in IE 8. This PR edits the README and
Contributing files to reflect that fact and adds Edge to browser list.

Resolves issue #377.
2017-06-25 17:50:31 -04:00
Erik Demaine
25dde7f841 Implicit \color, explicitly grouped \textcolor (#619) 2017-06-12 23:11:27 -04:00
Noxx
40ec1b92b8 Fixed missing verb in README (#668) 2017-03-14 11:53:20 -04:00
Kevin Barabash
7aa84d010c Merge pull request #644 from gagern/readmeMacros
Describe site-provided macros in README
2017-01-22 18:21:51 -05:00
Martin von Gagern
59c4e008db Fix case of string in README 2017-01-22 22:39:57 +01:00
Martin von Gagern
079fecaf86 Update README files to 0.7.1 release 2017-01-22 14:48:00 +01:00
Erik Demaine
a5e38d3b8a Switch speed test in README (#640)
Permission to reference page granted in
https://github.com/Khan/KaTeX/issues/420#issuecomment-270810784
2017-01-20 22:50:10 +01:00
Martin von Gagern
a0cd343d85 Improve description of macros
Separate type, meaning and format to clarify the paragraph.
2017-01-13 19:59:36 +01:00
James Lee
90ba0e341d README.md - added integrity (#590)
Integrity generated from https://www.srihash.org/
Reference: https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity
2017-01-13 12:15:28 +01:00
Martin von Gagern
0c5d9d55cf Document macros in options object 2017-01-13 12:13:07 +01:00
Johannes Schmitz
1cf10c4cd6 Update CDN links to latest version (#478) 2016-05-23 11:42:27 -07:00
Mathias Bynens
d5359ef5bb README: Use HTTPS where possible
There’s no reason not to always use HTTPS. See https://github.com/konklone/cdns-to-https#background for more info.
2016-03-01 15:44:45 +01:00
Piotr Migdał
69130d6a19 Readme - set recent version (0.5.1) for CDN links 2015-10-19 16:53:05 +02:00
The Gitter Badger
b9b8396b6f Add Gitter badge 2015-09-25 21:28:31 +00:00
Jeff Everett
e1c221273c Added support for visual depiction of unsupported commands 2015-07-28 00:50:08 -06:00
Kevin Barabash
1a11eb46b2 Added a link to the list of commands on the wiki. 2015-07-01 20:21:55 -06:00
Ben Alpert
0a0a3430b5 Bump version in README
Fixes #241.
2015-06-05 02:00:15 -07:00
Ben Alpert
b2fbd08871 Update README.md 2015-04-03 20:48:51 -07:00
Emily Eisenberg
cd9bca4a89 Add basic auto-render extension
Summary:
Add an auto-render extension to render math on a page. It
exposes a global function (maybe we should attach it to `katex`?) to
render math in an element. It comes with a README on how to use it.
Also, make `make build` build the minified file.

Fixes #26

Test Plan:
 - Visit http://localhost:7936/contrib/auto-render/
 - See that all of the math renders correctly
 - `make test`

Reviewers: alpert, kevinb

Reviewed By: kevinb

Differential Revision: https://phabricator.khanacademy.org/D16620
2015-04-01 15:57:10 -07:00
Peter Dave Hello
ba3bbe7558 bump version number to v0.2.0 in cdn url 2015-03-08 13:53:43 +08:00
Emily Eisenberg
fd18f6979e Add an optional settings argument to render calls
Summary:
Add the ability to pass in options to the render calls which contain information about the parse. This information is passed around to the parser and builder, which parse and render differently depending on the options. Currently, this includes an option to render the math in display mode (i.e. centered, block level, and in displaystyle).

Also added some changes to make it easier to add new data to functions (now that new data doesn't need to be copied into the ParseFuncOrArg data structure, it is looked up when it is needed) and has more sane support for the `'original'` argType (as suggested by pull request #93).

Test Plan:
 - Make sure tests and lint pass
 - Make sure huxley screenshots didn't change, and new screenshot looks correct

Reviewers: alpert

Reviewed By: alpert

Differential Revision: https://phabricator.khanacademy.org/D13810
2015-02-19 15:26:57 -08:00
Ben Alpert
2ab14ea224 Point to CDNJS in README
Test Plan: http://jsbin.com/mirumuyeku/edit?html,js,output

Auditors: emily
2014-10-19 16:17:11 -07:00
Ben Alpert
a9d5a8782f Fix typos in README 2014-10-15 18:47:33 -07:00
Ben Alpert
c87511168d Add braces around displaystyle
This makes a difference for expressions like `2 \choose 3`.

Auditors: emily
2014-10-15 18:25:12 -07:00
Emily Eisenberg
6aa70e33e4 Merge pull request #137 from cben/displaystyle
Mention `\displaystyle` workaround in README
2014-10-01 15:06:02 -07:00
Ben Alpert
cba70b51fe Make built files use only ASCII characters
Test Plan: Searched for `[^\x00-\x7f]` in vim and had no results, where there were before.

Reviewers: emily

Reviewed By: emily

Differential Revision: http://phabricator.khanacademy.org/D13459
2014-10-01 14:07:11 -07:00
Beni Cherniavsky-Paskin
80c4ca7c71 Mention \displaystyle workaround in README
until the question of display math API (#66) is decided either way...
2014-10-01 18:58:26 +03:00
Ben Alpert
240981e3a2 Merge pull request #70 from mathiasbynens/patch-1
README: Remove redundant `type` attribute
2014-09-23 22:16:25 -07:00