1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00
This commit is contained in:
Jermolene 2018-12-01 13:59:08 +00:00
parent 63031bb3fc
commit 8c367cdb21

View File

@ -13,7 +13,7 @@ Wrapper for `katex.min.js` that provides a `<$latex>` widget. It is also availab
"use strict"; "use strict";
var katex = require("$:/plugins/tiddlywiki/katex/katex.min.js"), var katex = require("$:/plugins/tiddlywiki/katex/katex.min.js"),
parseChem = require("$:/plugins/tiddlywiki/katex/mhchem.min.js"), chemParse = require("$:/plugins/tiddlywiki/katex/mhchem.min.js"),
Widget = require("$:/core/modules/widgets/widget.js").widget; Widget = require("$:/core/modules/widgets/widget.js").widget;
// Add \ce, \pu, and \tripledash to the KaTeX macros. // Add \ce, \pu, and \tripledash to the KaTeX macros.
katex.__defineMacro("\\ce", function(context) { katex.__defineMacro("\\ce", function(context) {