This is what i have for my markup syntax within my toml file:
[markup]
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
[markup.highlight]
style = "dracula" # Replace "dracula" with your chosen theme
lineNos = true # Enable line numbers if desired
lineNumbersInTable = false # Set to true if you'd like line numbers in a table format
Has anyone else had this issue? I have verified im on the latest version of Hugo.
After further testing, I discovered the issue wasn’t Hugo or the Mainroad theme at all.
The problem was caused by the 1Password Password Manager extension in Microsoft Edge, which was injecting CSS and interfering with the inline styles Chroma generates for code blocks.
• In Chrome, everything rendered fine.
• In Edge InPrivate (where extensions are disabled), the page also rendered correctly.
• Disabling extensions one by one identified 1Password as the culprit.