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

Inline footnotes not exported correctly #32

Open
AB1908 opened this issue Aug 1, 2021 · 1 comment
Open

Inline footnotes not exported correctly #32

AB1908 opened this issue Aug 1, 2021 · 1 comment

Comments

@AB1908
Copy link

AB1908 commented Aug 1, 2021

I have found that inline footnotes don't export correctly. For example:

This is text. ^[This is an inline footnote.]

which should render as

image

exports as

This is text. \^[This is an inline footnote.]

I also found that the referenced link style isn't preserved. Is this intended behavior? If so, I can always devise a workaround to manually extract those links but it'd be much cleaner if you could add that functionality.

As a final note, I think a hint in the readme that the user needs to do a chmod +x would be very useful. I was certainly guilty of not doing so at first.

@zoni
Copy link
Owner

zoni commented Aug 28, 2021

Thanks for this report, @AB1908.

I have found that inline footnotes don't export correctly.

Obsidian-export uses pulldown_cmark, a CommonMark-compliant parser, to process markdown. Unfortunately, the CommonMark specification doesn't include footnotes, though the [^footnote] syntax is fairly universally supported by CommonMark parsers.

I had never come across this ^[inline] syntax before, but now I wish it was supported. 🙂 This would have to be implemented within the pulldown_cmark library however, so it's not something I have control over.

If you'd like to pursue this, I would recommend you file a feature request with pulldown_cmark, explaining the syntax for such inline footnotes and pointing to other Markdown implementations that support this to show how widespread it is.

I also found that the referenced link style isn't preserved. Is this intended behavior?

I don't understand what you mean by this, could you elaborate?

As a final note, I think a hint in the readme that the user needs to do a chmod +x would be very useful. I was certainly guilty of not doing so at first.

Good point! I'll make a note of this.


Edit: relevant external references regarding footnotes:

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