View Single Post
Old 10-23-2015, 02:37 PM   #6
porphyry5
Connoisseur
porphyry5 began at the beginning.
 
Posts: 69
Karma: 10
Join Date: Apr 2013
Device: Kobo Clara, Onyx Boox Monte Cristo
Quote:
Originally Posted by eschwartz View Post
That's more to do with the markdown-to-HTML step (if applicable) of the conversion.
The xpath sees an h1 tag.
The original poster said
Quote:
Originally Posted by morgon
As this is a text file xpath does not make much sense (at least to me), but I can construct a regext that allows chapters to be detected.

How can I teach calibre to use this regex to detect chapters when converting plain text to epub?
That is, he was asking how to do it without using xpath.
porphyry5 is offline   Reply With Quote