Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Footnote in Title is duplicated in HTML Export with table of content #2883

Closed
olivierkes opened this issue Apr 28, 2016 · 2 comments
Closed

Comments

@olivierkes
Copy link

Converting

# Title^[Footnote]

to HTML (using --toc) produces the following :


Title2

  1. Footnote

  2. Footnote


The footnote is referenced both in the table of content and in the title, and therefore appears twice at the end of the document.

In my opinion, footnote in titles should simply be discarded in table of content.

@jgm
Copy link
Owner

jgm commented Jun 23, 2016

What version of pandoc are you using?
I get (with current pandoc):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Style-Type" content="text/css" />
  <meta name="generator" content="pandoc" />
  <title></title>
  <style type="text/css">code{white-space: pre;}</style>
</head>
<body>
<div id="TOC">
<ul>
<li><a href="#title">Title</a></li>
</ul>
</div>
<h1 id="title">Title<a href="#fn1" class="footnoteRef" id="fnref1"><sup>1</sup></a></h1>
<div class="footnotes">
<hr />
<ol>
<li id="fn1"><p>Footnote<a href="#fnref1">↩</a></p></li>
</ol>
</div>
</body>
</html>

As you can see there's only one note here.

@jgm jgm closed this as completed Jun 23, 2016
@olivierkes
Copy link
Author

I was using pandoc 1.12.2.1, so yeah... sorry. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants