Skip to content

Commit 016ca1d

Browse files
authored
Merge pull request #3 from python-la-paz:feature/taicoding/mermaid
Add Mermaid.js
2 parents dbb20ff + 11d96a4 commit 016ca1d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

content/sesion01/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<script src="../../plugin/math/math.js"></script>
2727
<script src="../../plugin/pointer/pointer.js"></script>
2828
<script src="../../plugin/zoom/zoom.js"></script>
29+
<script src="https://cdn.jsdelivr.net/npm/reveal.js-mermaid-plugin@11.4.1/plugin/mermaid/mermaid.js"></script>
2930
<script>
3031

3132
Reveal.initialize({
@@ -35,7 +36,7 @@
3536
center: true,
3637
pdfMaxPagesPerSlide: 1,
3738
slideNumber: 'c/t',
38-
plugins: [RevealMarkdown, RevealHighlight, RevealNotes, RevealMath.KaTeX, RevealZoom, RevealPointer],
39+
plugins: [RevealMarkdown, RevealHighlight, RevealNotes, RevealMath.KaTeX, RevealZoom, RevealPointer, RevealMermaid],
3940
pointer: {
4041
key: "q", // key to enable pointer, default "q", not case-sensitive
4142
color: "red", // color of a cursor, default "red" any valid CSS color

index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
<!-- Theme used for syntax highlighted code -->
1515
<link rel="stylesheet" href="plugin/highlight/monokai.css">
16+
17+
1618
</head>
1719

1820
<body>
@@ -41,14 +43,16 @@ <h6>2025</h6>
4143
<script src="plugin/markdown/markdown.js"></script>
4244
<script src="plugin/highlight/highlight.js"></script>
4345
<script src="plugin/zoom/zoom.js"></script>
46+
<script src="https://cdn.jsdelivr.net/npm/mermaid@10.9.0/dist/mermaid.min.js"></script>
47+
<script src="https://cdn.jsdelivr.net/npm/reveal.js-mermaid-plugin@11.4.1/plugin/mermaid/mermaid.js"></script>
4448
<script>
4549
// More info about initialization & config:
4650
// - https://revealjs.com/initialization/
4751
// - https://revealjs.com/config/
4852
Reveal.initialize({
4953
hash: true,
5054
// Learn about plugins: https://revealjs.com/plugins/
51-
plugins: [RevealMarkdown, RevealHighlight, RevealNotes, RevealZoom]
55+
plugins: [RevealMarkdown, RevealHighlight, RevealNotes, RevealZoom, RevealMermaid]
5256
});
5357
</script>
5458
<!-- Google tag (gtag.js) -->

0 commit comments

Comments
 (0)