Available formats are the three built-ins plus any custom templates, sorted

All 4 scenarios hold

asciidoc, html, and markdown are always available; any custom formats discovered in the template directory are merged in and the whole list is sorted alphabetically.

expected outcome broken scenario
ScenarioTemplate FilesAvailable Formats?
Empty template directory[]
  • asciidoc
  • html
  • markdown
Custom XML format
  • table.xml.peb
  • index.xml.peb
  • asciidoc
  • html
  • markdown
  • xml
Formats sorted alphabetically
  • table.zebra.peb
  • index.zebra.peb
  • table.aardvark.peb
  • index.aardvark.peb
  • aardvark
  • asciidoc
  • html
  • markdown
  • zebra
Single custom format
  • table.custom.peb
  • index.custom.peb
  • asciidoc
  • custom
  • html
  • markdown