-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add YAML syntax highlighting #103
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
Comments
@azerupi Could you perhaps explain why this is happening? Does mdBook use an older version of Highlight.js that lacks YAML support for syntax highlighting? |
Yes, I haven't updates highlight.js since August, I think. I am rewriting mdBook to have a sort of plugin api and will extract the Also I have disabled auto-detect, because in my experience it doesn't But.. at the moment I am on vacation ;)
|
@azerupi Sounds good. Until then, please relax and enjoy your vacation! |
YAML support is not activated by default in highlight.js code. As a temporary workaround, you could download highlight.js (Custom package section) from there website, activating all the languages you need, and then putting the file in |
Yes, @ebkalderon you can do like @Luthaf suggests until I update the in tree version. You can read more about the process of overriding default theme files in the documentation. If you do, let me know if it fixes the issue |
It seems that with highlightjs/highlight.js#119, the Highlight.js library now supports syntax highlighting for YAML. However, when I annotate some YAML with ````yaml`, no syntax highlighting appears.
The text was updated successfully, but these errors were encountered: