From 3a43de22725464250a14056e0c601c2e8455274a Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 22 Sep 2014 10:41:12 +0100 Subject: [PATCH] Updates to KaTeX plugin --- bin/fullbld.sh | 10 ++++++++++ editions/katexdemo/tiddlers/HelloThere.tid | 4 ++++ editions/katexdemo/tiddlers/ImplementationNotes.tid | 1 + 3 files changed, 15 insertions(+) diff --git a/bin/fullbld.sh b/bin/fullbld.sh index d5d410611..c54ef8a9f 100755 --- a/bin/fullbld.sh +++ b/bin/fullbld.sh @@ -98,6 +98,16 @@ node ./tiddlywiki.js \ # ###################################################### +# /plugins/tiddlywiki/katex/index.html Demo wiki with KaTeX plugin +# /plugins/tiddlywiki/katex/empty.html Empty wiki with KaTeX plugin +node ./tiddlywiki.js \ + ./editions/katexdemo \ + --verbose \ + --output $TW5_BUILD_OUTPUT \ + --rendertiddler $:/core/save/all plugins/tiddlywiki/katex/index.html text/plain \ + --rendertiddler $:/core/save/empty plugins/tiddlywiki/katex/empty.html text/plain \ + || exit 1 + # /plugins/tiddlywiki/tahoelafs/index.html Demo wiki with Tahoe-LAFS plugin # /plugins/tiddlywiki/tahoelafs/empty.html Empty wiki with Tahoe-LAFS plugin node ./tiddlywiki.js \ diff --git a/editions/katexdemo/tiddlers/HelloThere.tid b/editions/katexdemo/tiddlers/HelloThere.tid index 8a4c567fe..60b8f14e0 100644 --- a/editions/katexdemo/tiddlers/HelloThere.tid +++ b/editions/katexdemo/tiddlers/HelloThere.tid @@ -2,6 +2,10 @@ title: HelloThere This is a TiddlyWiki plugin for mathematical typesetting based on KaTeX from Khan Academy. +It is completely self-contained, and doesn't need an Internet connection in order to work. + +//This first version of the plugin cannot be used to generate static content under Node.js, but that capability will come in a future update. (Note that you can still use it when running the client-server configuration under Node.js).// + ! Installation To add the plugin to your own TiddlyWiki5, just drag this link to the browser window: diff --git a/editions/katexdemo/tiddlers/ImplementationNotes.tid b/editions/katexdemo/tiddlers/ImplementationNotes.tid index f3d967216..0c82c4522 100644 --- a/editions/katexdemo/tiddlers/ImplementationNotes.tid +++ b/editions/katexdemo/tiddlers/ImplementationNotes.tid @@ -27,3 +27,4 @@ These definitions are currently removed manually from [[$:/plugins/tiddlywiki/ka } ``` +Note that the plugin currently only embeds the WOFF format fonts, which seems to be sufficient for most browsers.