Commit fa2096da authored by Henk Verlinde's avatar Henk Verlinde
Browse files

feat: update mermaid code fences usage

parent 7d6df425
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ hljs.registerLanguage('yaml', yaml);
hljs.registerLanguage('md', markdown);

document.addEventListener('DOMContentLoaded', () => {
  document.querySelectorAll('pre code').forEach((block) => {
  document.querySelectorAll('pre code:not(.language-mermaid)').forEach((block) => {
    hljs.highlightElement(block);
  });
});
+6 −0
Original line number Diff line number Diff line
@@ -13,6 +13,12 @@ weight: 110
toc: true
---

```js
function myFunction(p1, p2) {
  return p1 * p2;   // The function returns the product of p1 and p2
}
```

## Flow

### Shortcode