🔧 Fix Mermaid invocation

It look like commit f9d73c0 introduced a very subtle regression
by removing what seemed to be an extraneous space in a selector...
But the space was there on purpose, so it had actually broken
Mermaid integration. This fixes it, hopefully in a way that won't
be affected the same way!
This commit is contained in:
Jérôme Petazzoni
2026-02-16 16:27:11 +01:00
parent ae776d71ba
commit fb9e531c63

View File

@@ -54,7 +54,7 @@
mermaid.initialize({ startOnLoad: false });
slideshow.on('afterShowSlide', function (slide) {
mermaid.run({
nodes: document.querySelectorAll('div.remark-visible.mermaid'),
nodes: document.querySelectorAll('div.remark-visible pre.mermaid'),
});
});
// Reminder, if you want to tinker with mermaid,