From 24c6eece1b0cf2896392f9f95c3d19cb8cd5de38 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 20 Feb 2018 21:24:11 +0000 Subject: [PATCH] Update to KaTeX v0.9.0 --- .../prerelease/tiddlers/Release 5.1.16.tid | 2 +- plugins/tiddlywiki/katex/files/README.md | 32 +- .../katex/files/fonts/KaTeX_AMS-Regular.eot | Bin 71656 -> 0 bytes .../katex/files/fonts/KaTeX_AMS-Regular.ttf | Bin 71428 -> 71428 bytes .../katex/files/fonts/KaTeX_AMS-Regular.woff | Bin 40200 -> 40200 bytes .../katex/files/fonts/KaTeX_AMS-Regular.woff2 | Bin 33212 -> 33208 bytes .../files/fonts/KaTeX_Caligraphic-Bold.eot | Bin 19836 -> 0 bytes .../files/fonts/KaTeX_Caligraphic-Bold.ttf | Bin 19588 -> 19588 bytes .../files/fonts/KaTeX_Caligraphic-Bold.woff | Bin 12136 -> 12136 bytes .../files/fonts/KaTeX_Caligraphic-Bold.woff2 | Bin 10584 -> 10608 bytes .../files/fonts/KaTeX_Caligraphic-Regular.eot | Bin 19220 -> 0 bytes .../files/fonts/KaTeX_Caligraphic-Regular.ttf | Bin 18960 -> 18960 bytes .../fonts/KaTeX_Caligraphic-Regular.woff | Bin 11868 -> 11868 bytes .../fonts/KaTeX_Caligraphic-Regular.woff2 | Bin 10396 -> 10412 bytes .../katex/files/fonts/KaTeX_Fraktur-Bold.eot | Bin 36200 -> 0 bytes .../katex/files/fonts/KaTeX_Fraktur-Bold.ttf | Bin 35968 -> 35968 bytes .../katex/files/fonts/KaTeX_Fraktur-Bold.woff | Bin 23388 -> 23388 bytes .../files/fonts/KaTeX_Fraktur-Bold.woff2 | Bin 20472 -> 20488 bytes .../files/fonts/KaTeX_Fraktur-Regular.eot | Bin 34896 -> 0 bytes .../files/fonts/KaTeX_Fraktur-Regular.ttf | Bin 34652 -> 34652 bytes .../files/fonts/KaTeX_Fraktur-Regular.woff | Bin 22844 -> 22844 bytes .../files/fonts/KaTeX_Fraktur-Regular.woff2 | Bin 19872 -> 19868 bytes .../katex/files/fonts/KaTeX_Main-Bold.eot | Bin 60688 -> 0 bytes .../katex/files/fonts/KaTeX_Main-Bold.ttf | Bin 63028 -> 61772 bytes .../katex/files/fonts/KaTeX_Main-Bold.woff | Bin 37160 -> 36928 bytes .../katex/files/fonts/KaTeX_Main-Bold.woff2 | Bin 31000 -> 30824 bytes .../files/fonts/KaTeX_Main-BoldItalic.ttf | Bin 0 -> 44824 bytes .../files/fonts/KaTeX_Main-BoldItalic.woff | Bin 0 -> 26228 bytes .../files/fonts/KaTeX_Main-BoldItalic.woff2 | Bin 0 -> 22176 bytes .../katex/files/fonts/KaTeX_Main-Italic.eot | Bin 44132 -> 0 bytes .../katex/files/fonts/KaTeX_Main-Italic.ttf | Bin 47636 -> 47952 bytes .../katex/files/fonts/KaTeX_Main-Italic.woff | Bin 27092 -> 27200 bytes .../katex/files/fonts/KaTeX_Main-Italic.woff2 | Bin 22972 -> 23064 bytes .../katex/files/fonts/KaTeX_Main-Regular.eot | Bin 68228 -> 0 bytes .../katex/files/fonts/KaTeX_Main-Regular.ttf | Bin 71316 -> 70512 bytes .../katex/files/fonts/KaTeX_Main-Regular.woff | Bin 39576 -> 39728 bytes .../files/fonts/KaTeX_Main-Regular.woff2 | Bin 32948 -> 33096 bytes .../files/fonts/KaTeX_Math-BoldItalic.eot | Bin 39990 -> 0 bytes .../files/fonts/KaTeX_Math-BoldItalic.ttf | Bin 39744 -> 0 bytes .../files/fonts/KaTeX_Math-BoldItalic.woff | Bin 23192 -> 0 bytes .../files/fonts/KaTeX_Math-BoldItalic.woff2 | Bin 20028 -> 0 bytes .../katex/files/fonts/KaTeX_Math-Italic.eot | Bin 41676 -> 0 bytes .../katex/files/fonts/KaTeX_Math-Italic.ttf | Bin 41448 -> 41448 bytes .../katex/files/fonts/KaTeX_Math-Italic.woff | Bin 23820 -> 23820 bytes .../katex/files/fonts/KaTeX_Math-Italic.woff2 | Bin 20420 -> 20416 bytes .../katex/files/fonts/KaTeX_Math-Regular.eot | Bin 41536 -> 0 bytes .../katex/files/fonts/KaTeX_Math-Regular.ttf | Bin 41304 -> 0 bytes .../katex/files/fonts/KaTeX_Math-Regular.woff | Bin 23712 -> 0 bytes .../files/fonts/KaTeX_Math-Regular.woff2 | Bin 20384 -> 0 bytes .../files/fonts/KaTeX_SansSerif-Bold.eot | Bin 34204 -> 0 bytes .../files/fonts/KaTeX_SansSerif-Bold.ttf | Bin 33964 -> 34032 bytes .../files/fonts/KaTeX_SansSerif-Bold.woff | Bin 19196 -> 19172 bytes .../files/fonts/KaTeX_SansSerif-Bold.woff2 | Bin 16000 -> 16000 bytes .../files/fonts/KaTeX_SansSerif-Italic.eot | Bin 31320 -> 0 bytes .../files/fonts/KaTeX_SansSerif-Italic.ttf | Bin 31072 -> 31308 bytes .../files/fonts/KaTeX_SansSerif-Italic.woff | Bin 18080 -> 18128 bytes .../files/fonts/KaTeX_SansSerif-Italic.woff2 | Bin 15144 -> 15204 bytes .../files/fonts/KaTeX_SansSerif-Regular.eot | Bin 30212 -> 0 bytes .../files/fonts/KaTeX_SansSerif-Regular.ttf | Bin 29960 -> 30156 bytes .../files/fonts/KaTeX_SansSerif-Regular.woff | Bin 16744 -> 16784 bytes .../files/fonts/KaTeX_SansSerif-Regular.woff2 | Bin 13900 -> 14004 bytes .../files/fonts/KaTeX_Script-Regular.eot | Bin 25104 -> 0 bytes .../files/fonts/KaTeX_Script-Regular.ttf | Bin 24864 -> 24864 bytes .../files/fonts/KaTeX_Script-Regular.woff | Bin 13856 -> 13856 bytes .../files/fonts/KaTeX_Script-Regular.woff2 | Bin 12284 -> 12268 bytes .../katex/files/fonts/KaTeX_Size1-Regular.eot | Bin 13408 -> 0 bytes .../katex/files/fonts/KaTeX_Size1-Regular.ttf | Bin 13172 -> 13172 bytes .../files/fonts/KaTeX_Size1-Regular.woff | Bin 6980 -> 6980 bytes .../files/fonts/KaTeX_Size1-Regular.woff2 | Bin 5812 -> 5812 bytes .../katex/files/fonts/KaTeX_Size2-Regular.eot | Bin 12648 -> 0 bytes .../katex/files/fonts/KaTeX_Size2-Regular.ttf | Bin 12412 -> 12412 bytes .../files/fonts/KaTeX_Size2-Regular.woff | Bin 6684 -> 6684 bytes .../files/fonts/KaTeX_Size2-Regular.woff2 | Bin 5556 -> 5560 bytes .../katex/files/fonts/KaTeX_Size3-Regular.eot | Bin 8596 -> 0 bytes .../katex/files/fonts/KaTeX_Size3-Regular.ttf | Bin 8360 -> 8360 bytes .../files/fonts/KaTeX_Size3-Regular.woff | Bin 4776 -> 4776 bytes .../files/fonts/KaTeX_Size3-Regular.woff2 | Bin 3852 -> 3860 bytes .../katex/files/fonts/KaTeX_Size4-Regular.eot | Bin 11520 -> 0 bytes .../katex/files/fonts/KaTeX_Size4-Regular.ttf | Bin 11284 -> 11284 bytes .../files/fonts/KaTeX_Size4-Regular.woff | Bin 6456 -> 6456 bytes .../files/fonts/KaTeX_Size4-Regular.woff2 | Bin 5168 -> 5132 bytes .../files/fonts/KaTeX_Typewriter-Regular.eot | Bin 35984 -> 0 bytes .../files/fonts/KaTeX_Typewriter-Regular.ttf | Bin 35728 -> 36308 bytes .../files/fonts/KaTeX_Typewriter-Regular.woff | Bin 20812 -> 20924 bytes .../fonts/KaTeX_Typewriter-Regular.woff2 | Bin 17360 -> 17536 bytes plugins/tiddlywiki/katex/files/katex.js | 20389 ++++++++-------- plugins/tiddlywiki/katex/files/katex.min.css | 2 +- plugins/tiddlywiki/katex/files/katex.min.js | 10 +- .../files/katex.without-font-face.min.css | 2 +- plugins/tiddlywiki/katex/styles.tid | 22 + 90 files changed, 10572 insertions(+), 9887 deletions(-) delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_AMS-Regular.eot delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Caligraphic-Bold.eot delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Caligraphic-Regular.eot delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Fraktur-Bold.eot delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Fraktur-Regular.eot delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Main-Bold.eot create mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Main-BoldItalic.ttf create mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Main-BoldItalic.woff create mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Main-BoldItalic.woff2 delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Main-Italic.eot delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Main-Regular.eot delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Math-BoldItalic.eot delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Math-BoldItalic.ttf delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Math-BoldItalic.woff delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Math-BoldItalic.woff2 delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Math-Italic.eot delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Math-Regular.eot delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Math-Regular.ttf delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Math-Regular.woff delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Math-Regular.woff2 delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_SansSerif-Bold.eot delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_SansSerif-Italic.eot delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_SansSerif-Regular.eot delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Script-Regular.eot delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Size1-Regular.eot delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Size2-Regular.eot delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Size3-Regular.eot delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Size4-Regular.eot delete mode 100644 plugins/tiddlywiki/katex/files/fonts/KaTeX_Typewriter-Regular.eot diff --git a/editions/prerelease/tiddlers/Release 5.1.16.tid b/editions/prerelease/tiddlers/Release 5.1.16.tid index 223c2b3f4..99797d55c 100644 --- a/editions/prerelease/tiddlers/Release 5.1.16.tid +++ b/editions/prerelease/tiddlers/Release 5.1.16.tid @@ -11,7 +11,7 @@ type: text/vnd.tiddlywiki * New [[Dynaview Plugin]] makes it possible to build user interfaces that dynamically respond to changes in scrolling or zooming * Improved [[Text-Slicer Plugin|Text-Slicer Edition]] with customisable JSON rules -* Updated [[KaTeX Plugin]] to latest v0.9.0-beta +* Updated [[KaTeX Plugin]] to latest v0.9.0 !! Translation Improvements diff --git a/plugins/tiddlywiki/katex/files/README.md b/plugins/tiddlywiki/katex/files/README.md index 75e881c06..a3396c1b1 100644 --- a/plugins/tiddlywiki/katex/files/README.md +++ b/plugins/tiddlywiki/katex/files/README.md @@ -1,5 +1,6 @@ -# [KaTeX](https://khan.github.io/KaTeX/) [![Build Status](https://travis-ci.org/Khan/KaTeX.svg?branch=master)](https://travis-ci.org/Khan/KaTeX) - +# [KaTeX](https://khan.github.io/KaTeX/) +[![Build Status](https://travis-ci.org/Khan/KaTeX.svg?branch=master)](https://travis-ci.org/Khan/KaTeX) +[![codecov](https://codecov.io/gh/Khan/KaTeX/branch/master/graph/badge.svg)](https://codecov.io/gh/Khan/KaTeX) [![Join the chat at https://gitter.im/Khan/KaTeX](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Khan/KaTeX?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web. @@ -16,8 +17,8 @@ KaTeX supports all major browsers, including Chrome, Safari, Firefox, Opera, Edg You can [download KaTeX](https://github.com/khan/katex/releases) and host it on your server or include the `katex.min.js` and `katex.min.css` files on your page directly from a CDN: ```html - - + + ``` #### In-browser rendering @@ -41,6 +42,26 @@ var html = katex.renderToString("c = \\pm\\sqrt{a^2 + b^2}"); Make sure to include the CSS and font files, but there is no need to include the JavaScript. Like `render`, `renderToString` throws if it can't parse the expression. +#### Security + +Any HTML generated by KaTeX *should* be safe from `