pandoc icon indicating copy to clipboard operation
pandoc copied to clipboard

Texinfo: better support for nested bullet lists

Open lemzwerg opened this issue 3 weeks ago • 0 comments

[pandoc 3.8.2.1]

Contrary to, say, LaTeX, Texinfo doesn't provide different marks for nested bullet lists automatically; they must be explicitly specified as an argument to @itemize, for example,

@itemize @minus{}
...
@end itemize

This MarkDown fragment from Pandoc's documentation

* fruits
  + apples
    - macintosh
    - red delicious
  + pears
  + peaches
* vegetables
  + broccoli
  + chard

gets converted to

@itemize
@item
fruits
@itemize
@item
apples
@itemize
@item
macintosh
@item
red delicious
@end itemize

@item
pears
@item
peaches
@end itemize

@item
vegetables
@itemize
@item
broccoli
@item
chard
@end itemize

@end itemize

It would be nice if the Texinfo writer could recognize nested itemize list, providing a proper argument to the corresponding @itemize environment.

Here are images showing the LaTeX and Texinfo renderings.

Image Image

lemzwerg avatar Dec 10 '25 07:12 lemzwerg