mdBook icon indicating copy to clipboard operation
mdBook copied to clipboard

Local custom font files are serialized since version 0.5 - how to reference them?

Open spktkpkt opened this issue 2 months ago • 0 comments

Question

Local custom font files are now serialized, which results in files like fonts/fira-code-v27-latin-300-0fc02cbc.woff2 (fira-code-v27-latin-300.woff2 is the original filename) in the output/html folder. The serialized CSS file (like fonts/fonts-3c66ea91.css) is linked correctly in the HTML files, but the fonts can't be loaded because the paths to the font files inside the CSS are not correct, they still point to the filenames without the serial. Maybe I just missed something, any hints?

Version

mdbook v0.5.1

spktkpkt avatar Nov 21 '25 08:11 spktkpkt