Ghost Markdown Shortcut for Footnote

Does anyone know what is the markdown shortcut for footnote?
If using markdown card and i type this ^[my footnote] in the markdown card, it will be generated as a footnote. but that only available from markdown card.

How about markdown shortcut from the koenig editor? I know that we can still use markdown as shortcut directly from koenig. so how about this?

Below are example image of what i mean:

This is using markdown card as you can see there

And this is the output

And unfortunately if add some text regularly in koenig editor after the markdown card. It will end up like this:

Looks like we need to use markdown entirely if that happen. Any idea on the shortcut?

Hi @eddie!

Are you not comfortable with writing all your content inside a markdown card? Because that’s a perfectly fine way to write your articles, the HTML that’s produced is just as good as the markup produced by the main Ghost editor. Some people prefer writing in markdown, which is what the markdown card is for :blush:

Prefer markdown shortcut compare to markdown card tbh. because it is more user friendly for writer. Markdown is more likely suitable for developer or geek.

if there is no support for footnote as shortcut in ghost editor, hoping for a support soon.
creating manually or using markdown card is not that great. Unless the whole typing experience reverted to markdown once again. Which will force editor to learn that and make used to it.

I can see what you mean, both cases have their drawbacks of being a little time consuming. I thought about this a bit and had an idea of using JavaScript to find links on the page and generating a footnote from those links:

In this CodePen I’m using JavaScript to locate any link in my main content that contains “fn” and converting them into a footnote. Whatever link is applied to the “fn” text is then generated at the bottom in a footnotes section, just like in the markdown version.

With this creating footnotes is as straightforward as creating a regular link :sparkles:. I’ve also written the code in such a way that you can choose what text to be in the link, so instead it could be “more info” or “details”. Hope you find this useful :blush:

Instead of fn , why not <sup> that contains <a> ?
I believe that most of the time <sup> that contains <a> is used to refer something at footnote.

What you’ve shown in the codepen, doesn’t it want to be PR to the ghost editor? So everyone else can make use of it in case they need it. I read it in the forum and found that some people also interesting in footnote that they already being using it since Ghost 1.0 until they drop the support. I mean, before this Ghost was fully markdown until Koenig arrived and kill some minor but useful stuff. But of course, Koenig is here for a reason: not everyone are markdown expert.

I hope this shortcut can be added to Ghost Editor. cc: @DavidDarnes

If you check the code I wrote you’ll see that it automatically generates the <sup> elements, as well as all the elements that are created when adding footnotes.

The reason for creating this is to suit your specific needs. From what I’ve seen in the forum there hasn’t been a demand for this addition. Meaning that either people are content with the footnote support within the Markdown card, or that people aren’t using footnotes very often.

You are of course welcome to contribute the addition yourself :blush:, more details can be found here:

There are actually quite a few. Also a voting there :point_down:


Well, looks like not that much, but it actually consider as a important, if not crucial, part of blogging. I’ve seen few blog wanna use reference but with bad “source” or “reference” implementation. Maybe because their current cms doesn’t support that. Ghost can fit that market. Usually blog that related to politics and current issue ; that of course require reference ; We both know why. Tech blog also use that, some if not all.

About Contribution

I don’t think that Ghost core developer will approved this because you said it is not demanding and it is claimed here

We generally don’t merge new features and larger changes without prior discussion with the core product team for tech/design specification.

I read that as small chance of approval as it is also not being approved in the prev forum post (above :point_up: ) and here.

mentioned because no reply indicator, didn’t know why . @DavidDarnes

@DavidDarnes i saw that there is no new product update . maybe this could be the next one while ghost staff are working from home during the pandemic

Universal footnotes are not an easy thing to support, as has been covered on the forum previously

There are workarounds available such as using markdown-only in posts where you need footnotes, or by manually linking footnotes up using the formatting tools available in the rich-text editor.

1 Like

instead of using html card like you suggest to manually link up the reference. why not creating a footnote card? so it won’t be “html” thing. still linking manually but easier and standardised compare to writing html on post which could break.

i wonder why the reply sometimes showing and sometimes doesn’t. so i tag mr @Kevin instead

PRs are always welcome :wink: Everything is open source, if there’s a particular issue that is causing you problems then you are free to use your own resources or recruit help to fix it.