Restore trust/strict options to remarkable-katex plugin (#2295)

Fix a mistake introduced in #2280
This commit is contained in:
Erik Demaine
2020-07-11 13:56:26 -04:00
committed by GitHub
parent 5a9d146add
commit b027dca926

View File

@@ -1,5 +1,6 @@
// https://github.com/bradhowes/remarkable-katex/blob/master/index.js
// Modified here to require("../..") instead of require("katex").
// Modified here to require("../..") instead of require("katex")
// and add options {trust: true, strict: false}.
/* MIT License
@@ -39,8 +40,8 @@ module.exports = (md, options) => {
* Render the contents as KaTeX
*/
const renderKatex = (source, displayMode) => katex.renderToString(source,
{displayMode: displayMode,
throwOnError: false});
{displayMode: displayMode, throwOnError: false,
trust: true, strict: false});
/**
* Parse '$$' as a block. Based off of similar method in remarkable.