mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
latex rendering slowed pc down
This commit is contained in:
@@ -4,12 +4,12 @@ import markedKatex from "marked-katex-extension";
|
||||
import * as DOMPurify from "isomorphic-dompurify";
|
||||
|
||||
export function markdownToHTMLSafe(markdownString: string) {
|
||||
const options = {
|
||||
throwOnError: false,
|
||||
nonStandard: true
|
||||
};
|
||||
// const options = {
|
||||
// throwOnError: false,
|
||||
// nonStandard: true
|
||||
// };
|
||||
|
||||
marked.use(markedKatex(options));
|
||||
// marked.use(markedKatex(options));
|
||||
|
||||
const clean = DOMPurify.sanitize(
|
||||
marked.parse(markdownString, { async: false, pedantic: false, gfm: true })
|
||||
|
||||
Reference in New Issue
Block a user