{"action":"opened","issue":{"url":"https://api.github.com/repos/jgm/pandoc/issues/2083","labels_url":"https://api.github.com/repos/jgm/pandoc/issues/2083/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc/issues/2083/comments","events_url":"https://api.github.com/repos/jgm/pandoc/issues/2083/events","html_url":"https://github.com/jgm/pandoc/issues/2083","id":68465314,"number":2083,"title":"Citation - footnote collision","user":{"login":"tomduck","id":315246,"avatar_url":"https://avatars.githubusercontent.com/u/315246?v=3","gravatar_id":"","url":"https://api.github.com/users/tomduck","html_url":"https://github.com/tomduck","followers_url":"https://api.github.com/users/tomduck/followers","following_url":"https://api.github.com/users/tomduck/following{/other_user}","gists_url":"https://api.github.com/users/tomduck/gists{/gist_id}","starred_url":"https://api.github.com/users/tomduck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomduck/subscriptions","organizations_url":"https://api.github.com/users/tomduck/orgs","repos_url":"https://api.github.com/users/tomduck/repos","events_url":"https://api.github.com/users/tomduck/events{/privacy}","received_events_url":"https://api.github.com/users/tomduck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-14T18:41:12Z","updated_at":"2015-04-14T18:41:12Z","closed_at":null,"body":"Placing a footnote after a citation results in unexpected output.\r\n\r\nFor example, suppose I have the following in demo.md\r\n\r\n    Source materials include @fenner2012a[^1] and class notes.\r\n\r\n    [^1]: Subscription required.\r\n\r\nand process it with\r\n\r\n    $ pandoc demo.md --from=markdown+citations --filter pandoc-citeproc -o demo.pdf\r\n\r\nThe result in the pdf looks like\r\n\r\n    Source materials include Fenner (2012 ˆ1) and class notes.\r\n\r\n    Fenner, Martin. 2012. “One-Click Science Marketing.” Nature Materials 11 (4).\r\n    Nature Publishing Group: 261–63. doi:10.1038/nmat3283.\r\n\r\nNotice that there is no footnote, and `^1` appears in the citation.  Putting a space between the citation and the footnote gives the same result.\r\n\r\nThe full `demo.md` for my test is as follows:\r\n\r\n```\r\nSource materials include @fenner2012a[^1] and class notes.\r\n\r\n[^1]: Subscription required.\r\n\r\n---\r\nreferences:\r\n- id: fenner2012a\r\n  title: One-click science marketing\r\n  author:\r\n  - family: Fenner\r\n    given: Martin\r\n  container-title: Nature Materials\r\n  volume: 11\r\n  URL: 'http://dx.doi.org/10.1038/nmat3283'\r\n  DOI: 10.1038/nmat3283\r\n  issue: 4\r\n  publisher: Nature Publishing Group\r\n  page: 261-263\r\n  type: article-journal\r\n  issued:\r\n    year: 2012\r\n    month: 3\r\n...\r\n```"}}