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

Footnotes duplicated in rst when inside a table #1769

Closed
lesserevil opened this issue Nov 19, 2014 · 0 comments
Closed

Footnotes duplicated in rst when inside a table #1769

lesserevil opened this issue Nov 19, 2014 · 0 comments

Comments

@lesserevil
Copy link

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
@jgm jgm closed this as completed in 159c711 Nov 20, 2014
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

1 participant