Closed
Description
As of v2.14.2, v2.9.2.1, and v2.2.1, the --preserve-tabs
option turns tab-indented lines inside raw HTML tags into verbatim blocks. For example:
$ printf '# Tab-indented raw HTML\n\n<ol>\n\t<li>one\n</ol>\n' \
| pandoc --preserve-tabs
<h1 id="tab-indented-raw-html">Tab-indented raw HTML</h1>
<ol>
<pre><code><li>one</code></pre>
</ol>
$
Whereas without --preserve-tabs
it becomes:
$ printf '# Tab-indented raw HTML\n\n<ol>\n\t<li>one\n</ol>\n' \
| pandoc
<h1 id="tab-indented-raw-html">Tab-indented raw HTML</h1>
<ol>
<li>
one
</ol>
$
I would expect pandoc to parse this input the same way with or without --preserve-tabs
. Indeed, that was true with v1.12.4.2, which did not create a verbatim block in either case.
(FWIW, my builds of v1.12.4.2, v2.2.1, and v2.9.2.1 came from Debian jessie, buster, and bullseye, resp. I got v2.14.2 from GitHub releases.)