Closed Vinfall closed 1 year ago
Glad to see new commits coming, but this issue is still not solved with Hugo v0.117.0+extended and risotto v0.3.0. I'll update the content to match latest version.
I think you expect it to be clipped with a scrollbar (as in the second code block in your screenshot), not wrapped, right? I don't think most people would appreciate text wrapping in a <pre>
block.
Oh so scrollbar is what I want and using latest commit solves this for me. Many thanks!
Hugo version
I can reproduce this on latest Hugo v0.105.0. I install the extended version and it comes from Void Linux package, you can get the src template here.
Update: still reproducible on v0.117.0.
Description
When lineNOS is set in site config, writing a long line in code block will result in unwrapped text.
Markup config that caused this:
Steps to reproduce
Then go to http://localhost:1313/post/markdown-syntax/ and you'll find this:![firefox_0qPaIbFgMZ cleaned](https://user-images.githubusercontent.com/91039000/195792418-fcfa8a1f-998a-41d2-98a4-403220a4aba3.png)
What I Expect
It gets wrapped, just like what
Code block indented with four spaces
shows.Edit: add Hugo version and more info.