Replies: 1 comment 5 replies
-
@LoiAnsah Unfortunately, screenshots of code are not code and make it very difficult to help.
Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? The goal is to make it as easy as possible for us to recreate your problem so that we can fix it: please help us help you! Thanks. You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four If you have multiple files (and if it is absolutely required to have multiple files), please share as a Git repository.
Additionally and if not already given, please share the output of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I'm experiencing a rendering issue in Quarto with a Python code block.
Here's what I'm doing:
I'm writing two Python code blocks in a Markdown file using triple backticks and specifying Python as the language. The first code block renders correctly (see Screenshot 1). But the second block does not render properly, the syntax highlighting is broken, numbers are misplaced, and the structure is distorted (see Screenshot 2).
Screenshot 1
Screenshot 2

Questions
Is there a known issue with certain numeric values, spacing, or characters that break syntax highlighting?
Any suggestions for fixing this rendering issue?
Beta Was this translation helpful? Give feedback.
All reactions