-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nikola formatting of code-blocks breaks final rendering in HTML #3790
Comments
You may need to specify a language name that signifies plaintext. Something like:
|
Deleted my comment because it doesn't really apply to markdown |
The actual output for fenced code blocks depends on the markdown plugin used. The default one uses pygments to highlight it, IIRC, but others just mark it as a code block and rely on client-side highlighters. And yes, something like marking the text as "text" or "plaintext" will do the trick. Or use the markdown not-fenced block, which is "indent 4 spaces or a tab" |
Indeed, using "text" tag helps ! -- however, it seems like having |
It comes from python-markdown |
I'm curious, in which way is this breaking HTML rendering? |
After more digging and tweaking various CSS setting, I've found in my theme.css the following style definition which breaks HTML rendering:
the problem appears due Now, the theme I'm using is not coming with theme.css file, so it looks like it's coming by default in Nikola with some default themes or generated by some scripts, no idea. |
|
My guess is that the broken rendering is due to some |
Indeed, I'm using "justify" for my site as several people prefer (while others don't care, so I keep it) -- and yes, if I disable "justify" and using default |
Environment
Python Version: 3.12
Nikola Version: 8.3.1
Operating System: MacOS 14
Description: Nikola formatting of code-blocks breaks final rendering in HTML
Markdown input:
HTML output:
which is in several other places totally breaks plain-text / code rendering.
Any way to get instead something more simple and just straightforward like:
Thank you for your help !
The text was updated successfully, but these errors were encountered: