Add h2 tag to chapter heading to make TOC
I have some old epubs without a TOC that have chapter headings marked as <p>. Each book has approximately 30 chapters, Chapter 1...Chapter 30. It is a drag to manually find each heading, add the h2 tag, and then generate a TOC. I would like to find a way of automating this process.
I tried using calibre to convert epub to epub with heuristic processing to add the tag but nothing happened.
Can I do a find and replace, maybe with regex, to achieve the desired result?
|