Let me preface this by saying I have never attempted this before.
Quote:
Originally Posted by kovidgoyal
//*[name()='h1' or name()='h2' or name()='h3']
|
I took your Test Case text file, followed Kovid's suggestion as quoted above. To avoid confusion I attached an image of the settings I used.
Quote:
Originally Posted by p3aul
This is what I had in mind:
Title rendered by h1 or # Part one as h2 or ## Chapter Three as h3 or ### Part Two as h2 or ##
|
This seemed to create the TOC structure you want. It shows the h2 and h3 items. I might be missing something, check out the attached image of the TOC.
I also attached the ePub it created. Isn't this what you asked for?