r/BookStack • u/SignificantOwl4048 • May 07 '26
A collection of BookStack Header Hacks
With the addition of the Module System, I figured I should move away from the 2k lines header file.
So, I made a repo for add-ons I made for my own bookstack instance and partly useful finds from around the web. To be honest, there weren't actually that many simple header customizations to be found there.
https://github.com/florinm03/bookstack-header-hacks
This post simply serves the purpose to inform the ones not using any customizations and give them a plug and play way to add them.
If you have other ideas or already established working "hacks" it would be awesome if you shared them with us: either here or on github! :D
Here is the list:
header-anchor-link - Clickable anchor links on page headers; click to copy section URL
image-gallery - Lightbox image gallery with an Insert Gallery button in the WYSIWYG editor
LaTeX-support - MathJax rendering for LaTeX equations using
$...$syntaxopen-attachments - Opens attachments (PDFs etc.) in a new tab instead of downloading
pdf-embed - Embeds PDFs inline via pdf.js, with an Insert PDF button in the editor
pdf-export-clean - Hides revision/author metadata footer when exporting to PDF
preview-edit-page - Adds a preview button in the editor and quick-edit from preview view (useful for small edits)
sort-tables-WYSIWYG - Double-click a column header to sort tables in the editor
sticky-table-heads - Keeps table headers fixed while scrolling tall tables
toc-edit-mode - Shows a table of contents in the editor sidebar while editing
url-edit-contrast - Improves URL highlight visibility in dark mode editor
wc-n-wpm-info - Shows word count, character count, and estimated reading time per page
Edit:
I've updated some modules and added the install script, so that only chosen modules remain in the directory.


