portails/assets/js/mermaid.js

12 lines
415 B
JavaScript
Raw Normal View History

2022-01-14 13:54:01 +01:00
import mermaid from 'mermaid';
2021-07-01 08:48:56 +02:00
2021-06-30 15:16:45 +02:00
var config = {
theme: 'default',
fontFamily: '"Jost", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Helvetica Neue", arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";',
};
2021-06-30 20:32:28 +02:00
document.addEventListener('DOMContentLoaded', () => {
mermaid.initialize(config);
2021-07-01 16:21:03 +02:00
mermaid.init(undefined, '.language-mermaid');
2021-06-30 20:32:28 +02:00
});