Skip to content

Commit

Permalink
fixes #156 replace del
Browse files Browse the repository at this point in the history
  • Loading branch information
volca committed May 7, 2024
1 parent d52a38a commit e46179c
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 91 deletions.
4 changes: 0 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ gulp.task('lib', function () {
'node_modules/marked-highlight/lib/index.cjs'
]).pipe(gulp.dest('js/marked-highlight'));

gulp.src([
'node_modules/marked-katex-extension/lib/index.cjs'
]).pipe(gulp.dest('js/marked-katex-extension'));

gulp.src([
'node_modules/katex/dist/katex.min.css'
]).pipe(gulp.dest('css'))
Expand Down
1 change: 1 addition & 0 deletions js/diagramflowseq.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function renderKatex(srcMath, isDisplay) {
srcMath = unEscape(srcMath);
try {
repMath = katex.renderToString(srcMath, {displayMode: isDisplay});
repMath = repMath.replace(/~/g, '\\~')
} catch(err) {
console.error("katex parse math string[" + srcMath + "] failed! throw error: " + err);
repMath = "";
Expand Down
5 changes: 1 addition & 4 deletions js/markdownify.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,7 @@
var preHtml = data;
if (items.katex) {
config.markedOptions.katex = true;
//preHtml = diagramFlowSeq.prepareDiagram(preHtml);
marked.use(markedKatex({
throwOnError: false
}))
preHtml = diagramFlowSeq.prepareDiagram(preHtml);
}

if (items.toc) {
Expand Down
81 changes: 0 additions & 81 deletions js/marked-katex-extension/index.cjs

This file was deleted.

1 change: 0 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"js/jquery.js",
"js/marked.min.js",
"js/marked-highlight/index.cjs",
"js/marked-katex-extension/index.cjs",
"js/purify.js",
"js/highlight.min.js",
"js/markdownify.js",
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"katex": "^0.16.10",
"marked": "^7.0.5",
"marked-highlight": "^2.1.1",
"marked-katex-extension": "^5.0.1",
"mermaid": "10.8.0"
},
"scripts": {
Expand Down

0 comments on commit e46179c

Please sign in to comment.