-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the plugin compatible with mermaid library >= 10 (#70)
- now the plugin works with versions of the library > 10 and lower (the proper <SCRIPT></SCRIPT> call is inserted) - Git Graph works and can be check in test/simple (#75)
- Loading branch information
Laurent Franceschetti
committed
Apr 27, 2023
1 parent
3608781
commit e17764d
Showing
7 changed files
with
250 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Mermaid test (simple) | ||
|
||
## Mermaid usual | ||
This is a test of Mermaid: | ||
|
||
```mermaid | ||
graph TD | ||
hello --> world | ||
world --> world2 | ||
``` | ||
|
||
> If you don't see a graph here, it's broken. | ||
|
||
|
||
## Normal fences | ||
This is usual fenced code (with no highlighting) | ||
|
||
```python | ||
for page in pages: | ||
page.read() | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// js/extra.js | ||
function myMermaidCallbackFunction(id) { | ||
var d = new Date(); | ||
var now = d.toLocaleTimeString(); | ||
console.log('Hello, this is myMermaidCallbackFunction', id, now); | ||
} | ||
|
||
|
||
// import uml from "./uml" | ||
|
||
// (() => { | ||
// const onReady = function(fn) { | ||
// if (document.addEventListener) { | ||
// document.addEventListener("DOMContentLoaded", fn) | ||
// document.addEventListener("DOMContentSwitch", fn) | ||
// } else { | ||
// document.attachEvent("onreadystatechange", () => { | ||
// if (document.readyState === "interactive") { | ||
// fn() | ||
// } | ||
// }) | ||
// } | ||
// } | ||
|
||
// onReady(() => { | ||
|
||
// if (typeof mermaid !== "undefined") { | ||
// uml("mermaid") | ||
// } | ||
// }) | ||
// })() |
Oops, something went wrong.