I’m about to migrate a website to Hugo. If possible I would like to keep using Prims.js as a code highlighter. So far this has worked for all posts I made under Hugo (for example https://gist.github.com/Fryboyter/3e98942a865e20ccb12305aaa5d78235).
But now I have an article which causes problems (https://gist.github.com/Fryboyter/a06cd3f8ecb87fb3892affe09fb6715c). Here for example only Fryboyter is shown in line 19. For lines 20 to 22 only empty lines are displayed instead of the code. And so on. The problem here seems to be the div.
If I look at the source code of the page Hugo created, then the complete code I want to highlight is present.
So does anyone have any idea how to display the complete code with Hugo and Prism.js? When I use the highlighter of Hugo everything is displayed, but here long lines of code are not wrapped, so that you have to scroll horizontally or the text overlaps to the right. Therefore I would prefer Prism.js.
Hugo Static Site Generator v0.54.0/extended linux/amd64 BuildDate: unknown