Print on Demand: Exporting ePub files from Ulysses

Hi there.

I know Ulysses can already export to ePub but I’m wondering if there are specific markup definitions to facilitate the automatic generation of a Table of Contents?

Are there specific tags needed at the beginning of chapters which are picked up by the print-on-demand service or do these services already search and apply to heading tags throughout the file?

Thanks!