Skip to content

Commit

Permalink
Update JS doc deps and ensure mermaid diagrams service callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Dec 2, 2022
1 parent 22fe9c9 commit 06ac495
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 89 deletions.
5 changes: 4 additions & 1 deletion docs/src/js/uml.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,13 @@ export default className => {
mermaid.mermaidAPI.render(
`_diagram_${i}`,
getFromCode(parentEl),
content => {
(content, fn) => {
const el = document.createElement("div")
el.className = className
el.innerHTML = content
if (fn) {
fn(el)
}

// Insert the render where we want it and remove the original text source.
// Mermaid will clean up the temporary element.
Expand Down
2 changes: 0 additions & 2 deletions docs/theme/assets/pymdownx-extras/extra-loader-4c254c38.js

This file was deleted.

This file was deleted.

Loading

0 comments on commit 06ac495

Please sign in to comment.