mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 01:36:45 +00:00
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.
5 lines
88 B
Plaintext
5 lines
88 B
Plaintext
[ CodeBlock
|
|
( "" , [] , [] )
|
|
"void main() {\n printf(\"Hello world\");\n}"
|
|
]
|