statiqdev / Statiq.Docs

A static documentation site generator.
https://statiq.dev/docs
Other
53 stars 8 forks source link

Use full class name for code block language #54

Closed Turnerj closed 1 year ago

Turnerj commented 2 years ago

This fixes an incompatibility between Statiq.Highlight and Statiq.Docs as Statiq.Highlight is specifically looking for language to determine what language to render as. It might still auto-detect the language correctly without it however given we know what language it is, we should be using it.

https://github.com/statiqdev/Statiq.Framework/blob/1a8bd58e6f1a4e63f0cae2870db78126bc511928/src/extensions/Statiq.Highlight/HighlightCode.cs#L121

daveaglick commented 1 year ago

Sorry this has languished for so long, and thanks for the contribution!