-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code formatting reports unknown language for plaintext
#269
Comments
The version of highlight.js Statiq uses for generation-time highlighting is relatively old and required some workarounds to build so it could be run from inside .NET: https://github.com/statiqdev/Statiq.Framework/blob/main/src/extensions/Statiq.Highlight/regenerating-highlight-all.js.md. I took a quick look through the code and sure enough, I can see about updating our version of |
Unfortunately it wasn't as easy as just running the same commands I used initially. As often happens, the npm packages and node ecosystem has moved under us and I'll need to figure out how to regenerate the highlight.js file from scratch. That could take some time. |
If it helps, it looks like there's a special case to handle plaintext, which should be getting detected at highlight-all.js:623 |
It took a little hacking, but I got this figured out. Highlighting |
Hi, any chance on a release for this? Thanks |
A new release just went out! Sorry for the super-long delay. I had thought I released this already and then got swamped (still am, but managed to get a new release out the door). |
As per highlight.js's supported languages,
plaintext
is a valid language for highlighting, however Statiq reports a warning when using thisThe text was updated successfully, but these errors were encountered: