Past Issues Searched
Issue is a Bug Report
Describe the bug
When Prism is enabled, there are indentation issues on the first line of a yaml, and so the complete code block is wrong.
Examples with a comment on the first line, it's ok:
# this is working
test:
a: 1
This is not working, the identation fails:
Expected behavior
When I write:
It generates:
<div class="prism-codeblock ">
--
| <pre id="9d18c54" class="language-yaml ">
| <code>test:
| a: 1</code>
| </pre>
| </div>
While I expect to have:
<div class="prism-codeblock ">
--
| <pre id="a5558bb" class="language-yaml ">
| <code>test:
| a: 1</code>
| </pre>
| </div>
Screenshots

Environment
- OS: MacOS
- Browser: Chrome
- Browser Version: 135.0.7049.115
Past Issues Searched
Issue is a Bug Report
Describe the bug
When Prism is enabled, there are indentation issues on the first line of a yaml, and so the complete code block is wrong.
Examples with a comment on the first line, it's ok:
This is not working, the identation fails:
Expected behavior
When I write:
It generates:
While I expect to have:
Screenshots
Environment