-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Labels
Description
[pandoc 3.8.2.1]
Consider the following MediaWiki input.
== Test ==
foofoo
bar
baz
foofoowhich looks like this
A call using
pandoc -s -f mediawiki -t texinfocreates the following Texinfo output.
\input texinfo @c -*-texinfo-*-
@documentencoding UTF-8
@ifnottex
@paragraphindent 0
@end ifnottex
@node Top
@top Top
@node Test
@section Test
foofoo
@code{bar}@*
@code{baz}
foofoo
@byeProcessing this with texi2pdf looks as follows.
As can be seen, the first line of the 'code block' is indented, which is wrong.
The correct solution is to convert MediaWiki code blocks to an @example environment instead:
@example
foo
bar
@end examplewhich looks like the following.

Reactions are currently unavailable