Skip to content

Commit

Permalink
Merge pull request hackmdio#1670 from hedgedoc/renovate/master-mermai…
Browse files Browse the repository at this point in the history
…d-8.x
  • Loading branch information
InnayTool authored Dec 2, 2021
2 parents ae966db + 381d360 commit b9d933a
Show file tree
Hide file tree
Showing 3 changed files with 280 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
"less-loader": "7.3.0",
"list.js": "2.3.1",
"mathjax": "2.7.9",
"mermaid": "8.12.1",
"mermaid": "8.13.4",
"mini-css-extract-plugin": "1.6.2",
"mocha": "9.1.3",
"mock-require": "3.0.3",
Expand Down
2 changes: 1 addition & 1 deletion public/js/extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ export function finishView (view) {
const $ele = $(value).closest('pre')
require.ensure([], function (require) {
try {
const mermaid = require('mermaid')
const mermaid = require('mermaid').default
mermaid.startOnLoad = false
mermaid.mermaidAPI.parse($value.text())
$ele.addClass('mermaid')
Expand Down
Loading

0 comments on commit b9d933a

Please sign in to comment.