Files
pandoc/test/odt/native/preformattedText.native
Jan Tojnar b4f71f7ef0 Odt reader: Support Preformatted Text style
LibreOffice uses `Preformatted_20_Text` as the default style for
code listings etc. Let’s detect if a paragraph has the `style-name`
and convert it to `CodeBlock` if it is the case.

Unfortunately, pandoc itself generates a separate style class like P123
for each paragraph so we will not yet support code listings from documents
generated by pandoc itself.

Closes #4841.
2026-02-16 13:54:34 +01:00

5 lines
88 B
Plaintext

[ CodeBlock
( "" , [] , [] )
"void main() {\n printf(\"Hello world\");\n}"
]