Quote:
Originally Posted by kovidgoyal
txt is internally converted to HTML and that is what the expression applies too. You can see the HTML using the debug section of the conversion dialog.
|
Yes, the .txt file is internally converted to HTML file. It becomes something like
```
...
<p>final sentence of last chapter</p>
<p class="whitespace" style="text-align:center; margin-top:0em; margin-bottom:0em">*</p>
<p>Chapter X</p>
<p>first sentence of current chapter</p>
...
```
After detecting structure, it becomes
```
...
<p>final sentence of last chapter</p>
<p class="whitespace" style="text-align:center; margin-top:0em; margin-bottom:0em">*</p>
<div style="display: block; page-break-after: always"></div>
<p id="calibre_toc_X">Chapter X</p>
<p>first sentence of current chapter</p>
...
```
But what I want is something like
```
...
<p>final sentence of last chapter</p>
<p class="whitespace" style="text-align:center; margin-top:0em; margin-bottom:0em">*</p>
<div style="display: block; page-break-after: always"></div>
<h2 id="calibre_toc_X">Chapter X</h2>
<p>first sentence of current chapter</p>
...
```
Pay attention to the line of Chapter X, I want it to become a title. Is it possible to achieve this in Calibrie?