mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 11:18:39 +00:00
Restore trust/strict options to remarkable-katex plugin (#2295)
Fix a mistake introduced in #2280
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user