alex-shpak / hugo-book

Hugo documentation theme as simple as plain book
https://hugo-book-demo.netlify.app
MIT License
3.21k stars 1.16k forks source link

markup highlight not work #608

Closed try-agaaain closed 4 months ago

try-agaaain commented 4 months ago

I generated the manni style with hugo gen chromastyles --style=manni> assets/manni.css and added the following code in config.yaml:

markup:
  highlight:
    noClasses: true
    style: manni
    tabWidth: 4

However, frustratingly, no matter how I adjust it, the code formatting does not change to ABAP style, and the background color of the code block remains black.

Here is my code repository: blog. Could you please help me see what went wrong?

try-agaaain commented 4 months ago

I found that there was another markup identifier originally existing in config.yaml, which I overlooked, as shown below:

markup:
  goldmark:
    renderer:
      unsafe: true
  tableOfContents:
    startLevel: 1

After merging these two markup configurations, syntax highlighting for code blocks works fine.