```
% pandoc -t texinfo
Before

----

After
^D
@node Top
@top Top

Before

@iftex
@bigskip@hrule@bigskip
@end iftex
@ifnottex
------------------------------------------------------------------------
@end ifnottex

After

```
