8000 --preserve-tabs verbatim-izes tab-indented lines inside raw HTML · Issue #7573 · jgm/pandoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
--preserve-tabs verbatim-izes tab-indented lines inside raw HTML #7573
Closed
@gnoutchd

Description

@gnoutchd

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>&lt;li&gt;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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0