Quote:
Originally Posted by porphyry5
The original poster said
That is, he was asking how to do it without using xpath.
|
No, that is in fact a crystal-clear example of "asking how to do it
using xpath".
On account of xpath is where you would put a regex.
This is beside the fact that your mention of heuristics operating on the text does not, in fact, help unless one is willing to rewrite the book.
As I said -- that is markdown-to-html.
Converting from one
format to another.
You have to have the book conform to those heuristics, not the other way around.