Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Groovy code highlighting does not take effect #2498

Open
zhang13690 opened this issue Nov 28, 2024 · 1 comment
Open

Groovy code highlighting does not take effect #2498

zhang13690 opened this issue Nov 28, 2024 · 1 comment
Labels
C-bug Category: A bug, incorrect or unintended behavior

Comments

@zhang13690
Copy link

Problem

When I used the markdown syntax of “```groovy ... ```“ to put in Groovy code, I found that the code was not highlighted during preview. Other programming languages don't seem to have this problem. May I ask why?

Steps

No response

Possible Solution(s)

It may be related to highlight.js, but when I tried using the official file of this js separately, I found that there was no problem with highlighting in Groovy.

Notes

No response

Version

mdbook v0.4.43
@zhang13690 zhang13690 added the C-bug Category: A bug, incorrect or unintended behavior label Nov 28, 2024
@slightlybelowzen
Copy link

There's only a certain subset of languages it supports out of the box, https://rust-lang.github.io/mdBook/format/theme/syntax-highlighting.html#supported-languages.

You'd have to add your own highlight.js file for groovy to work.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-bug Category: A bug, incorrect or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants