From 5af59f85f3c667ab5e4b839731af4e6286a3e7ca Mon Sep 17 00:00:00 2001 From: marzavec Date: Sat, 17 Aug 2019 16:24:29 -0700 Subject: Client update See changelog.md --- client/vendor/remarkable-katex/index.html | 1 + client/vendor/remarkable-katex/remarkableKatex.min.js | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 client/vendor/remarkable-katex/index.html create mode 100644 client/vendor/remarkable-katex/remarkableKatex.min.js (limited to 'client/vendor/remarkable-katex') diff --git a/client/vendor/remarkable-katex/index.html b/client/vendor/remarkable-katex/index.html new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/client/vendor/remarkable-katex/index.html @@ -0,0 +1 @@ + diff --git a/client/vendor/remarkable-katex/remarkableKatex.min.js b/client/vendor/remarkable-katex/remarkableKatex.min.js new file mode 100644 index 0000000..50c46fc --- /dev/null +++ b/client/vendor/remarkable-katex/remarkableKatex.min.js @@ -0,0 +1,8 @@ +/** + * Author: Brad Howes + * Barely modified then minified by Marzavec to work in browser + * Plugin for Remarkable Markdown processor which transforms $..$ and $$..$$ sequences into math HTML using the + * Katex package. + */ + +var remarkableKatex=function(e,r){e.inline.ruler.push("katex",function(e,r){var t,n,i,a=e.pos,s=a,l=e.posMax;if(36!==e.src.charCodeAt(a))return!1;for(++a;a2)return!1;for(n=i=a;-1!==(n=e.src.indexOf("$",i));){for(i=n+1;i1,level:e.level})}return e.pos=i,!0}}return r||(e.pending+=t),e.pos+=t.length,!0},r),e.block.ruler.push("katex",function(e,r,t){var n,i,a,s,l=!1,o=e.bMarks[r]+e.tShift[r],c=e.eMarks[r];if(o+1>c)return!1;if(36!==(n=e.src.charCodeAt(o)))return!1;if(s=o,2!=(i=(o=e.skipChars(o,n))-s))return!1;for(a=r;!(++a>=t||(o=s=e.bMarks[a]+e.tShift[a])<(c=e.eMarks[a])&&e.tShift[a]=4||(o=e.skipChars(o,n))-s