getzola / zola

A fast static site generator in a single binary with everything built-in. https://www.getzola.org
https://www.getzola.org
MIT License
13.76k stars 956 forks source link

Output classed spans for syntax highlighting instead of inline CSS #1092

Closed Bauke closed 4 years ago

Bauke commented 4 years ago

Relevant issue from Syntect: https://github.com/trishume/syntect/issues/121

Would it be possible to add a configuration option for Zola to output classed spans instead of inline CSS?

This would also help with #419 as it could allow people to theme the highlighted code with their own styles.

Keats commented 4 years ago

See https://github.com/getzola/zola/pull/913