Quote:
Originally Posted by doubleshuffle
If your heading has only the <p> tags, you're out of luck, I guess. But usually there are some style tags that are unique for headings in a particular book, so you can use those to build a regex that finds your headings.
|
That's what I'd do, too. If actually changing the tags with regex proves tricky, non-header chapter titles are usually near the top of a page and often have a consistent pattern that can be used to match them (immediately follows the body tag, nested in a div following the body, etc). Find the pattern and give all of those chapter-title p tags (or most of them) a specific class and then safely change them to header tags with Tag Mechanic.