Skip to content

Textile endnotes are not rendered correctly #9931

Open
@dbojan

Description

@dbojan

Textile endnotes are not rendered correctly when text is converted from textile to html or epub. They are rendered as text, with # displayed, without links. They should also be autonumbered, and rendered at the 'notelist. ' placeholder in html file.

command line used:
pandoc.exe test.textile -s -o test.html

test.textile:

The sun is reportedly hot,[#hot] just like freshly baked potatoes. Ice is cold.[#cold]

note#hot. Ouch.

note#cold. Brrr.

notelist.

result got:

<p>The sun is reportedly hot,[#hot] just like freshly baked potatoes.
Ice is cold.[#cold]</p>
<p>note#hot. Ouch.</p>
<p>note#cold. Brrr.</p>
<p>notelist.</p>

result expected, something like this https://textile-lang.com/doc/auto-numbered-notes:

<p>The sun is reportedly hot,<sup><a href="#note1589225180668187e114660-2"><span id="noteref1589225180668187e114660-1">1</span></a></sup> just like freshly baked potatoes. Ice is cold.<sup><a href="#note1589225180668187e114660-4"><span id="noteref1589225180668187e114660-3">2</span></a></sup></p>

<ol>
	<li><sup><a href="#noteref1589225180668187e114660-1">a</a></sup><span id="note1589225180668187e114660-2"> </span>Ouch.</li>
	<li><sup><a href="#noteref1589225180668187e114660-3">a</a></sup><span id="note1589225180668187e114660-4"> </span>Brrr.</li>
</ol>

text version:

The sun is reportedly hot,1 just like freshly baked potatoes. Ice is cold.2

   1. a Ouch.
   2. a Brrr.

Pandoc version?
windows 3.2.1

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions