Quote:
Originally Posted by kiwidude
If the chapter heading text has *no style* associated with it, the book view trick works.
However ever since 0.4.something, this feature is "broken" in my opinion if the text you are already highlight has a style. I am sure it *used* to be the case that applying a heading style using book view would result in whatever paragraph tags the text had being replaced with a plain <h3> type of tag. Now however it gets it wrong and just replaces the p with h3.
So if your text looks like this:
<p class="text">CHAPTER ONE</p>
You will end up with:
<h3 class="text">CHAPTER ONE</p>
Which is *rarely* (i.e. never) what I want. So you end up having to do a regex afterwards, which you may as well have just done in the first place, much faster.
|
My copy of Sigil also replaces the </p> with </h2> when I use the second header style. I have no idea why yours leaves the </p> alone.