rust-lang / rust-lang/mdBook

Groovy code highlighting does not take effect

Open
#2,498 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug
Dominant language
Rust
Stars
22.2k
Forks
1.9k
Avg merge
2d 21h
Merged PRs (30d)
12

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the mdBook preview with a fenced groovy block, then compare the bundled highlight.js behavior with the official file mentioned in the report. Done means Groovy code is highlighted during preview consistently with other supported languages.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.