Terence Eden. He has a beard and is smiling.
Theme Switcher:

How to make Markdown Footnotes start at Zero in WordPress

· 5 comments · 200 words


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…

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

What are your reckons?

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

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

To respond on your own website, write a post which contains a link to this post - then enter the URl of your page here. Learn more about WebMentions.