How to make Markdown Footnotes start at Zero in WordPress


As a dedicated and professional computer scientician0, I believe that all indices must start at zero. Not one, not two, but zero1.

The zeroth2 element is sacrosanct to our creed; for in the beginning there was nothing.

If you're using WordPress's JetPack, it uses an ancient version of Markdown Extra. You can either monkeypatch this, or install a separate Markdown plugin.

I've patched my fork of it in two specific places.

Firstly, I set $this->footnote_counter = 0; in the initial config of the footnotes.

Secondly, I changed the display so that the ordered list began from zero: <ol start="0">

Wait… should that be zerothly and firstly?

There's no way to change footnote links to symbols like * or ♪. Perhaps I'll add that next3😉?

Anyway, I enjoy hacking around on my theme.


  1. I've even got certificates in it! ↩︎

  2. Five is right out! ↩︎

  3. Or is it "noughtst"? ↩︎

  4. OK, maybe there is a way. But it isn't particularly easy or automated. ↩︎


Share this post on…

  • Mastodon
  • Facebook
  • LinkedIn
  • BlueSky
  • Threads
  • Reddit
  • HackerNews
  • Lobsters
  • WhatsApp
  • Telegram

5 thoughts on “How to make Markdown Footnotes start at Zero in WordPress”

  1. said on bsky.app:

    I just heard a talk from an engineer at an email service about their signing key transparency log

    They put up a picture of how the log was designed

    It started from 1

    The next 5 minutes of the talk were interspersed with apologies for this "historic mistake"...

    Reply | Reply to original comment on bsky.app

What are your reckons?

All comments are moderated and may not be published immediately. Your email address will not be published.

Allowed HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <p> <pre> <br> <img src="" alt="" title="" srcset="">