Skip to content

Updateing hightlight.js with custom languages #1459

@ghost

Description

I think the section in the User Guide howto update highlight.js is outdated. The default theme generates an hightlight.js and highlight.css in the root folder of the book directory. If I download a highlight.js package (https://highlightjs.org/download/) with custom selected formats the ZIP archive has the following structure:

  • highlight.pack.js
  • styles/xyz.css (100 different css files)

Uploading highlight.pack.js and *.css to a theme folder in mdbook does not work like described in the User Guide:

https://rust-lang.github.io/mdBook/format/theme/syntax-highlighting.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions