Skip to content

Footnotes duplicated in rst when inside a table #1769

@lesserevil

Description

@lesserevil

For this markdown doc:

  ---------------------------------- ---------------------------------
  Some text with a[^1] foonote[^2]   More text with[^3] foonotes[^4]
  ---------------------------------- ---------------------------------

[^1]: first footnote

[^2]: This is a note with a [link](link.html)

[^3]: third footnote

[^4]: This the second note with a [link](link.html)

run pandoc -r markdown -w rst and get:

+--------------------------------------+-------------------------------------+
| Some text with a [5]_ foonote [6]_   | More text with [7]_ foonotes [8]_   |
+--------------------------------------+-------------------------------------+

.. [1]
   first footnote

.. [2]
   This is a note with a `link <link.html>`__

.. [3]
   third footnote

.. [4]
   This the second note with a `link <link.html>`__

.. [5]
   first footnote

.. [6]
   This is a note with a `link <link.html>`__

.. [7]
   third footnote

.. [8]
   This the second note with a `link <link.html>`__

Note the footnotes are duplicated, and only the second set are referenced.

Version info:

$ pandoc --version
pandoc.exe 1.13.1
Compiled with texmath 0.8, highlighting-kate 0.5.8.5.
Syntax highlighting is supported for the following languages:
    actionscript, ada, apache, asn1, asp, awk, bash, bibtex, boo, c, changelog,
    clojure, cmake, coffee, coldfusion, commonlisp, cpp, cs, css, curry, d,
    diff, djangotemplate, doxygen, doxygenlua, dtd, eiffel, email, erlang,
    fortran, fsharp, gcc, gnuassembler, go, haskell, haxe, html, ini, isocpp,
    java, javadoc, javascript, json, jsp, julia, latex, lex, literatecurry,
    literatehaskell, lua, makefile, mandoc, markdown, matlab, maxima, metafont,
    mips, modelines, modula2, modula3, monobasic, nasm, noweb, objectivec,
    objectivecpp, ocaml, octave, pascal, perl, php, pike, postscript, prolog,
    pure, python, r, relaxngcompact, restructuredtext, rhtml, roff, ruby, rust,
    scala, scheme, sci, sed, sgml, sql, sqlmysql, sqlpostgresql, tcl, texinfo,
    verilog, vhdl, xml, xorg, xslt, xul, yacc, yaml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions