Finally done! I ended up using client-side highlight.js for syntax highlighting in the few code blocks in my blog posts, which is really silly. The stack I'm using should have an easier, static option, but I couldn't figure out react-syntax-highlighter/prism.js. Oh well.