Skip to content

Commit

Permalink
Remark on callbacks from mermaid lib 10.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Franceschetti committed Jul 26, 2023
1 parent aad9309 commit 8e4fcbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@ In your browser, open the webpage on the localhost

_New in 0.3.0_

**CAUTION**: As of the [version 10.0.0 of the javascript Library(https://github.com/mermaid-js/mermaid/blob/develop/CHANGELOG.md#changelog)], callbacks are no longer accepted.
If you wish to use callbacks, specify a lower version of the
library in the config file.

#### Use Case
To make modifications that are not possible with css, it can be useful
to insert a callback function (Javascript) into the target HTML page.
Expand Down
2 changes: 1 addition & 1 deletion mermaid2/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Constants and utilities
# ------------------------
# the default (recommended) mermaid lib
MERMAID_LIB_VERSION = '10.0.2'
MERMAID_LIB_VERSION = '10.1.0'
# MERMAID_LIB = "https://unpkg.com/mermaid@%s/dist/mermaid.min.js"
MERMAID_LIB_PRE_10 = "https://unpkg.com/mermaid@%s/dist/mermaid.min.js"
MERMAID_LIB = "https://unpkg.com/mermaid@%s/dist/mermaid.esm.min.mjs"
Expand Down

0 comments on commit 8e4fcbf

Please sign in to comment.