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

Markdown writer: flag for generating inline rather than reference-style footnotes #2567

Open
ltrgoddard opened this issue Dec 2, 2015 · 5 comments

Comments

@ltrgoddard
Copy link

When converting to Markdown, there is currently no way to make the writer use Pandoc's inline footnotes ("this is some text^[this is a footnote]") in generated text, rather than reference-style notes at the end of the document (see this question on StackOverflow). A flag to specify this behaviour would be useful for anyone converting from, say, a relatively long and heavily noted Docx, who then also needed to add new footnotes or modify the order of existing ones in the resulting Markdown (no more numbering conflicts, etc.) - not as niche a use-case as it sounds, I'd wager. (Edit: I've just hacked up a very simple Python script to do this, but it'd be handy to have it implemented more nicely in Pandoc.)

Just a thought!

@frederik-elwert
Copy link
Contributor

Yes, I stumbled upon this several times before. I would really appreciate a flag like this.

Btw, thanks for the script, @ltrgoddard! Very helpful!

@ltrgoddard
Copy link
Author

No problem!

@EvanEdwards
Copy link

@ltrgoddard Thanks for the script! It would be better as a flag, but you saved me some time.

@ltrgoddard
Copy link
Author

No problem!

On Wed, 13 Jul 2016, 17:18 Evan Edwards, [email protected] wrote:

@ltrgoddard https://github.com/ltrgoddard Thanks for the script! It
would be better as a flag, but you saved me some time.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2567 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/ABpaWQEQvUiZkwZi5sMiatoksJHQ9pyeks5qVQ_BgaJpZM4GtFwj
.

@jgm
Copy link
Owner

jgm commented Mar 13, 2017

The problem is that inline notes are only possible when the note doesn't contain block-level content. So you can't really have an option to use only inline notes. The best we could do would be to use inline notes when possible. I think that's a bit ugly and not simple conceptually, so I'd prefer not to add such a flag.

Note that we now provide an option that will let you have your notes at the end of the enclosing block (e.g. paragraph) or the end of the section rather than the end of the document. This should help for at least some of the cases where you wanted inline notes.

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

No branches or pull requests

4 participants