]> BookStack Code Mirror - hacks/commit
Reviewed mermaid viewer hack main
authorDan Brown <redacted>
Fri, 27 Jun 2025 13:54:59 +0000 (14:54 +0100)
committerDan Brown <redacted>
Fri, 27 Jun 2025 13:54:59 +0000 (14:54 +0100)
commita7185d10f9467b693ebe66dc20bfbcc26446f42d
treea01dbaa76dd639b50d0563d57c7ece28d1793336
parent4a572fa7e54fee04a5c82caffe273ec2fe8649dd
Reviewed mermaid viewer hack

Modified with the changes:
- Split out files to make use of the public files system, and so it's
  not a massive chunk of head content loaded on all pages.
- Added a little extra size control during load to reduce bouncing.
- Updated code block targeting just to avoid potention editor conflicts.
- Removed some non-existing CSS variable usages.
- Tweaked hack wording/guidance a little.
content/mermaid-viewer/head.html [deleted file]
content/mermaid-viewer/index.md
content/mermaid-viewer/layouts/parts/base-body-start.blade.php [new file with mode: 0644]
content/mermaid-viewer/public/mermaid-viewer.css [new file with mode: 0644]
content/mermaid-viewer/public/mermaid-viewer.js [new file with mode: 0644]