<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/rss-style.xsl" type="text/xsl"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	     xmlns:dc="http://purl.org/dc/elements/1.1/"
	   xmlns:atom="http://www.w3.org/2005/Atom"
	     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	  xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>markdown &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/tag/markdown/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Sun, 24 Aug 2025 07:53:58 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>markdown &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[Is this a bug in every Markdown (Extra) parser?]]></title>
		<link>https://shkspr.mobi/blog/2024/10/is-this-a-bug-in-every-markdown-extra-parser/</link>
					<comments>https://shkspr.mobi/blog/2024/10/is-this-a-bug-in-every-markdown-extra-parser/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Wed, 30 Oct 2024 12:34:24 +0000</pubDate>
				<category><![CDATA[/etc/]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[markdown]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[syntax]]></category>
		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=53007</guid>

					<description><![CDATA[Markdown is, I think it is fair to say, a frustrating &#34;specification&#34;. It&#039;s origins are a back-of-a-fag-packet document and a buggy Perl script - and we&#039;ve been dealing with the consequences ever since.  There are now multiple Markdown parsers, each with their own idiosyncrasies. To make matters worse, there&#039;s a set of extensions popularly known as &#34;Markdown Extra&#34;.  Extra has support for things…]]></description>
										<content:encoded><![CDATA[<p>Markdown is, I think it is fair to say, a frustrating "specification". It's origins are <a href="https://daringfireball.net/projects/markdown/">a back-of-a-fag-packet document</a> and a buggy Perl script - and we've been dealing with the consequences ever since.</p>

<p>There are now multiple Markdown parsers, each with their own idiosyncrasies. To make matters worse, there's a set of extensions popularly known as "Markdown Extra".</p>

<p>Extra has support for things like tables, footnotes, and - in some dialects - autolinks.</p>

<p>Most of the time, when an author writes the text <code>Visit https://example.com</code> they want the URl to be automatically turned into a hyperlink.  Most Markdown parsers support that. Hurrah!</p>

<p>But there's a rather nasty little edge case.</p>

<p>Markdown is explicitly designed so that <a href="https://daringfireball.net/projects/markdown/syntax#html">authors can mix and match HTML and Markdown</a> in the same document.  This is perfectly valid:</p>

<p><code>I &lt;em&gt;love&lt;/em&gt; the delicious taste of **fresh** oranges!</code></p>

<p>Which becomes:</p>

<p><code>I &lt;em&gt;love&lt;/em&gt; the delicious taste of &lt;strong&gt;fresh&lt;/strong&gt; oranges!</code></p>

<p>This is also valid:</p>

<p><code>&lt;a href="https://example.com/"&gt;Visit my *favourite* site https://example.com/&lt;/a&gt;!</code></p>

<p>The parser is smart enough to ignore the link inside the <code>href=""</code> but will process all the Markdown contents of the <code>&lt;a&gt;</code> element.</p>

<p>The text <em>favourite</em> is converted to <code>&lt;em&gt;favourite&lt;/em&gt;</code> correctly.</p>

<p>But what about the link? Should that be autolinked?</p>

<p>Here's how <a href="https://babelmark.github.io/?text=Autolink%3A+https%3A%2F%2Fexample.com%2F%0A%0AHTML%3A+%3Ca+href%3D%22https%3A%2F%2Fexample.com%2F%22%3EVisit+my+*favourite*+site+https%3A%2F%2Fexample.com%2F%3C%2Fa%3E!">a few dozen different Markdown parsers fare</a>.</p>

<p>Nearly all of the ones which support Autolink end up producing <em>broken</em> HTML. They nest an anchor within an anchor. Something explicitly forbidden by the HTML specification.</p>

<pre><code class="language-html">&lt;a href="https://example.com/"&gt;Visit my
   &lt;em&gt;favourite&lt;/em&gt; site 
   &lt;a href="https://example.com/"&gt;https://example.com/&lt;/a&gt;
&lt;/a&gt;!
</code></pre>

<p>Others break in weird and unexpected ways.</p>

<h2 id="is-this-a-bug"><a href="https://shkspr.mobi/blog/2024/10/is-this-a-bug-in-every-markdown-extra-parser/#is-this-a-bug">Is this a bug?</a></h2>

<p>Markdown is an excellent example of "do what I mean, not what I say" software. To the human reading the text, it might seem obvious which parts need to be transformed and which don't.</p>

<p>There are various specifications for how autolinking should work - but I couldn't find any documents which explicitly discuss where it <em>shouldn't</em> work.</p>

<p>At this point, you're probably going to leave a comment saying that it is the users who are wrong. They should wrap links in brackets, or stick to pure Markdown, or some other tosh.</p>

<p>Markdown was supposed to <strong>simplify</strong> the process of writing HTML. Anything which forces the user to write in an unnatural or confusing way is a bug.</p>

<blockquote><p>Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML).</p>

<p><a href="https://daringfireball.net/projects/markdown/">Markdown Introduction</a></p></blockquote>

<p>I don't think any of the authors of Markdown parsers have been naughty here. They mostly just follow the spec. But Markdown was designed without ever being tested with real users.  And real users break things in all sorts of unexpected and delightful ways.</p>

<p>That's where the real bug is. When we don't test with users and fail to meet their expectations, we produce faulty software.</p>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=53007&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2024/10/is-this-a-bug-in-every-markdown-extra-parser/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title><![CDATA[How to make Markdown Footnotes start at Zero in WordPress]]></title>
		<link>https://shkspr.mobi/blog/2024/10/how-to-make-markdown-footnotes-start-at-zero-in-wordpress/</link>
					<comments>https://shkspr.mobi/blog/2024/10/how-to-make-markdown-footnotes-start-at-zero-in-wordpress/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Fri, 11 Oct 2024 11:34:59 +0000</pubDate>
				<category><![CDATA[/etc/]]></category>
		<category><![CDATA[footnotes]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[markdown]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=52307</guid>

					<description><![CDATA[As a dedicated and professional computer scientician, I believe that all indices must start at zero. Not one, not two, but zero.  The zeroth element is sacrosanct to our creed; for in the beginning there was nothing.  If you&#039;re using WordPress&#039;s JetPack, it uses an ancient version of Markdown Extra.  You can either monkeypatch this, or install a separate Markdown plugin.  I&#039;ve patched my fork of…]]></description>
										<content:encoded><![CDATA[<p>As a dedicated and professional computer scientician<sup id="fnref:true"><a href="https://shkspr.mobi/blog/2024/10/how-to-make-markdown-footnotes-start-at-zero-in-wordpress/#fn:true" class="footnote-ref" title="I've even got certificates in it!" role="doc-noteref">0</a></sup>, I believe that all indices <em>must</em> start at zero. Not one, not two, but zero<sup id="fnref:five"><a href="https://shkspr.mobi/blog/2024/10/how-to-make-markdown-footnotes-start-at-zero-in-wordpress/#fn:five" class="footnote-ref" title="Five is right out!" role="doc-noteref">1</a></sup>.</p>

<p>The zeroth<sup id="fnref:zeroth"><a href="https://shkspr.mobi/blog/2024/10/how-to-make-markdown-footnotes-start-at-zero-in-wordpress/#fn:zeroth" class="footnote-ref" title="Or is it &quot;noughtst&quot;?" role="doc-noteref">2</a></sup> element is sacrosanct to our creed; for in the beginning there was <em>nothing</em>.</p>

<p>If you're using WordPress's JetPack, it uses an ancient version of <a href="https://github.com/michelf/php-markdown">Markdown Extra</a>.  You can either monkeypatch this, or <a href="https://codeberg.org/jeffmcneill/markdown-extra-unofficial">install a separate Markdown plugin</a>.</p>

<p>I've <a href="https://codeberg.org/edent/markdown-extra-unofficial/src/branch/edent-update">patched my fork of it</a> in two specific places.</p>

<p>Firstly, I set <code>$this-&gt;footnote_counter = 0;</code> in the initial config of the footnotes.</p>

<p>Secondly, I changed the display so that the ordered list began from zero: <code>&lt;ol start="0"&gt;</code></p>

<p>Wait… should that be zerothly and firstly?</p>

<p>There's no way to change footnote links to symbols like * or ♪. Perhaps I'll add that next<span style="display:none;"><sup id="fnref:hide"><a href="https://shkspr.mobi/blog/2024/10/how-to-make-markdown-footnotes-start-at-zero-in-wordpress/#fn:hide" class="footnote-ref" title="OK, maybe there is a way. But it isn't particularly easy or automated." role="doc-noteref">3</a></sup></span><sup id="fnref:hide"><a href="https://shkspr.mobi/blog/2024/10/how-to-make-markdown-footnotes-start-at-zero-in-wordpress/#fn:hide" class="footnote-ref" title="OK, maybe there is a way. But it isn't particularly easy or automated." role="doc-noteref">😉</a></sup>?</p>

<p>Anyway, I enjoy hacking around on my theme.</p>

<div id="footnotes" role="doc-endnotes">
<hr aria-label="Footnotes">
<ol start="0">

<li id="fn:true">
<p>I've even got certificates in it!&nbsp;<a href="https://shkspr.mobi/blog/2024/10/how-to-make-markdown-footnotes-start-at-zero-in-wordpress/#fnref:true" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:five">
<p><a href="https://youtu.be/SNTzOBKs1bA?t=74">Five is <em>right</em> out!</a>&nbsp;<a href="https://shkspr.mobi/blog/2024/10/how-to-make-markdown-footnotes-start-at-zero-in-wordpress/#fnref:five" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:zeroth">
<p>Or is it "noughtst"?&nbsp;<a href="https://shkspr.mobi/blog/2024/10/how-to-make-markdown-footnotes-start-at-zero-in-wordpress/#fnref:zeroth" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:hide">
<p>OK, maybe there is a way. But it isn't particularly easy or automated.&nbsp;<a href="https://shkspr.mobi/blog/2024/10/how-to-make-markdown-footnotes-start-at-zero-in-wordpress/#fnref:hide" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

</ol>
</div>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=52307&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2024/10/how-to-make-markdown-footnotes-start-at-zero-in-wordpress/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
		<item>
		<title><![CDATA[Liberate your Markdown posts from JetPack in WordPress]]></title>
		<link>https://shkspr.mobi/blog/2024/08/liberate-your-markdown-posts-from-jetpack-in-wordpress/</link>
					<comments>https://shkspr.mobi/blog/2024/08/liberate-your-markdown-posts-from-jetpack-in-wordpress/#respond</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Sun, 25 Aug 2024 11:34:20 +0000</pubDate>
				<category><![CDATA[/etc/]]></category>
		<category><![CDATA[jetpack]]></category>
		<category><![CDATA[markdown]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=51755</guid>

					<description><![CDATA[A scrap of code which I hope helps you.  Problem  You installed the WordPress JetPack plugin and wrote all your blog posts in Markdown. Now you want to remove JetPack or replace it with a better Markdown parser.  You turn off JetPack&#039;s &#34;Write posts or pages in plain-text Markdown syntax&#34;.  You click edit on a post and see the HTML version of your page. Where did the Markdown version go? …]]></description>
										<content:encoded><![CDATA[<p>A scrap of code which I hope helps you.</p>

<h2 id="problem"><a href="https://shkspr.mobi/blog/2024/08/liberate-your-markdown-posts-from-jetpack-in-wordpress/#problem">Problem</a></h2>

<p>You installed the WordPress JetPack plugin and wrote all your blog posts in Markdown. Now you want to remove JetPack or replace it with a better Markdown parser.</p>

<p>You turn off JetPack's "Write posts or pages in plain-text Markdown syntax".  You click edit on a post and see the HTML version of your page. Where did the Markdown version go?</p>

<h2 id="background"><a href="https://shkspr.mobi/blog/2024/08/liberate-your-markdown-posts-from-jetpack-in-wordpress/#background">Background</a></h2>

<p>When you write using JetPack's Markdown plugin, the Markdown version is stored in <code>post_content_filtered</code>. When you hit "publish" or "update", the page is parsed as Markdown and the HTML output is stored in <code>post_content</code>.</p>

<p>When you hit "edit", the <code>post_content_filtered</code> version is loaded into the editor - and the process starts again.</p>

<h2 id="solution"><a href="https://shkspr.mobi/blog/2024/08/liberate-your-markdown-posts-from-jetpack-in-wordpress/#solution">Solution</a></h2>

<p>When you edit a post, replace the content with the filtered version, then delete the filtered version.</p>

<p>Place this code in your theme's <code>functions.php</code>.</p>

<pre><code class="language-php">function edit_markdown_content( $content, $id ) {
    $post = get_post( $id );
    if ( $post &amp;&amp; ! empty( $post-&gt;post_content_filtered ) ) {
        //  Get the Markdown version
        $markdown = $post-&gt;post_content_filtered;

        //  Delete the post_content_filtered version
        global $wpdb;
        $debug = $wpdb-&gt;query( 
            $wpdb-&gt;prepare(
                "UPDATE $wpdb-&gt;posts SET `post_content_filtered` = '' WHERE `wp_posts`.`ID` = %d",
                                                                                              $id
            )
        );

        //  Replace the post_content with the Markdown version
        $post-&gt;post_content = $markdown;

        //  Send it to the editor with a message saying that it was restored, along with the date of restoration
        return "&lt;!-- Restored from post_content_filtered \n" . date("c") . "\n--&gt;" . $post-&gt;post_content;
    }
    return $post-&gt;post_content;
}
add_filter( "edit_post_content", "edit_markdown_content", 1, 2 );
</code></pre>

<p>I adapted it from <a href="https://github.com/terrylinooo/githuber-md/blob/5ae517a549600f719645d35baf30b29a8069ebcc/src/Controllers/Markdown.php#L1111">WP Githuber MD</a></p>

<h2 id="direct-mysql"><a href="https://shkspr.mobi/blog/2024/08/liberate-your-markdown-posts-from-jetpack-in-wordpress/#direct-mysql">Direct MySQL</a></h2>

<p>If you want to automatically convert all your posts, you can edit your database directly.</p>

<pre><code class="language-mysql">UPDATE wp_posts
SET 
    post_content = post_content_filtered,
    post_content_filtered = ''
WHERE post_content_filtered IS NOT NULL AND post_content_filtered&lt;&gt;'';
</code></pre>

<h2 id="warning"><a href="https://shkspr.mobi/blog/2024/08/liberate-your-markdown-posts-from-jetpack-in-wordpress/#warning">Warning</a></h2>

<p>If you do not have a Markdown parser installed, posts will come out looking *very* strange.</p>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=51755&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2024/08/liberate-your-markdown-posts-from-jetpack-in-wordpress/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title><![CDATA[WordPress GeSHi Highlighting for Markdown]]></title>
		<link>https://shkspr.mobi/blog/2024/05/wordpress-geshi-highlighting-for-markdown/</link>
					<comments>https://shkspr.mobi/blog/2024/05/wordpress-geshi-highlighting-for-markdown/#respond</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Wed, 01 May 2024 11:34:46 +0000</pubDate>
				<category><![CDATA[/etc/]]></category>
		<category><![CDATA[markdown]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=50390</guid>

					<description><![CDATA[I&#039;ve launched a WordPress Plugin for an extremely niche use-case.  WP GeSHi Highlight Redux works with WordPress&#039;s Classic Editor to convert Markdown to syntax highlighted code.  That allows me to write:  ```php $a = &#34;Hello&#34;; $b = 5 * 2; echo $a . str($b); ```   And have it displayed as:  $a = &#34;Hello&#34;; $b = 5 * 2; echo $a . str($b);   I&#039;ve previously written about the WP GeSHi Highlight plugin.…]]></description>
										<content:encoded><![CDATA[<p>I've launched a WordPress Plugin for an <em>extremely</em> niche use-case.</p>

<p><a href="https://github.com/edent/WP-GeSHi-Highlight-Redux/">WP GeSHi Highlight Redux</a> works with WordPress's Classic Editor to convert Markdown to syntax highlighted code.</p>

<p>That allows me to write:</p>

<pre>```php
$a = "Hello";
$b = 5 * 2;
echo $a . str($b);
```
</pre>

<p>And have it displayed as:</p>

<pre><code class="language-php">$a = "Hello";
$b = 5 * 2;
echo $a . str($b);
</code></pre>

<p>I've previously written about the <a href="https://shkspr.mobi/blog/2024/04/server-side-rendering-of-embedded-markdown-code-snippets/">WP GeSHi Highlight plugin</a>. My plugin is a fork of that. It has the following changes:</p>

<ul>
<li>RSS &amp; Atom feeds - disable code highlighting</li>
<li>Remove extra style wrappers</li>
<li>Markdown support</li>
<li>Remove line-numbers</li>
<li>Remove escape option (escape now permanent)</li>
<li>Remove TinyMCE changes</li>
<li>Remove custom CSS options</li>
<li>Improve default CSS</li>
<li>Improve HTML detection</li>
</ul>

<p>These changes work for me, with my weird blogging set-up. If they work for you, feel free to use it. If they don't work for you, please fork and write your own code.</p>

<p>You can <a href="https://github.com/edent/WP-GeSHi-Highlight-Redux/">download WP GeSHi Highlight Redux</a> or <a href="https://gehrcke.de/wp-geshi-highlight/">get the original plugin</a>.</p>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=50390&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2024/05/wordpress-geshi-highlighting-for-markdown/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title><![CDATA[Help Wanted! Testing Better Markdown Footnotes]]></title>
		<link>https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/</link>
					<comments>https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Wed, 05 Apr 2023 11:34:42 +0000</pubDate>
				<category><![CDATA[/etc/]]></category>
		<category><![CDATA[footnotes]]></category>
		<category><![CDATA[markdown]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=44576</guid>

					<description><![CDATA[I&#039;ve been thinking a lot about footnotes in Markdown. I&#039;ve contributed a patch to make them slightly better in WordPress.  Now I&#039;m wondering how to make them more useful by enhancing their pop-up title text.  To that end, I&#039;m writing a patch for PHP Markdown which will display the first ~200 characters of a footnote in the pop-up title text. Hover over the superscript number and you&#039;ll get a…]]></description>
										<content:encoded><![CDATA[<p>I've been thinking a lot about <a href="https://shkspr.mobi/blog/tag/footnotes/">footnotes in Markdown</a>. I've contributed <a href="https://github.com/Automattic/jetpack/issues/21371">a patch to make them slightly better in WordPress</a>.  Now I'm wondering how to make them more useful by enhancing their pop-up title text.</p>

<p>To that end, I'm writing a patch for PHP Markdown which will display the first ~200 characters of a footnote in the pop-up title text. Hover over the superscript number and you'll get a preview of the footnote<sup id="fnref:demo"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:demo" class="footnote-ref" title="You should be able to read this text in a pop-up." role="doc-noteref">0</a></sup>.</p>

<p>Dealing with all sorts of weird HTML &amp; Markdown edge-cases is tricky. So, if you'd like to help, <a href="https://github.com/michelf/php-markdown/issues/387">please contribute to this discussion</a>. And if you spot any bugs, please let me know.</p>

<h2 id="the-test-begins"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#the-test-begins">The test... Begins!</a></h2>

<p>These footnotes support HTML<sup id="fnref:html"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:html" class="footnote-ref" title="Using HTML and nested elements" role="doc-noteref">1</a></sup>.</p>

<p>And they cope with Markdown<sup id="fnref:md"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:md" class="footnote-ref" title="Some Markdown emphasis and a link exciting!" role="doc-noteref">2</a></sup>.</p>

<p>Footnotes with an image<sup id="fnref:img"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:img" class="footnote-ref" title="This is snuggle. Photo of a cute kitten. Everyone wants to be a cat." role="doc-noteref">3</a></sup> have the <code>img</code> replaced with its alt text.</p>

<p>They don't choke on entities<sup id="fnref:ent"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:ent" class="footnote-ref" title="Entity support &amp; or &amp; < or < £ and £." role="doc-noteref">4</a></sup>.</p>

<p>And plain quote marks are fine<sup id="fnref:quote"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:quote" class="footnote-ref" title="&quot;" role="doc-noteref">5</a></sup>.</p>

<p>Nested elements should work<sup id="fnref:nest"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:nest" class="footnote-ref" title="This is nested in multiple elements" role="doc-noteref">6</a></sup>.</p>

<p>Very long footnotes are truncated<sup id="fnref:long"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:long" class="footnote-ref" title="Sensors indicate no shuttle or other ships in this sector. According to coordinates, we have travelled 7,000 light years and are located near the system J-25. Tractor beam released, sir. Force field…" role="doc-noteref">7</a></sup>.</p>

<p>Fully multilingual<sup id="fnref:中国文"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:中国文" class="footnote-ref" title="两位皇子，你们各拥党羽，雄心勃勃地争取国柄和皇座，我们现在代表民众告诉你们：罗马人民已经众口一辞，公举素有忠诚之名的安德洛尼克斯作为统治罗马的君王，因为他曾经为罗马立下许多丰功伟绩，在今日的邦城之内，没有一个比他更高贵的男子，更英勇的战士。他这次奉着元老院的召唤，从征讨野蛮的哥特人的辛苦的战役中回国；凭着他们父子使敌人破胆的声威，已经镇伏了一个强悍善战的民族。自从他为了罗马的光荣开始出征、用武力膺…" role="doc-noteref">8</a></sup>.</p>

<p>Also Emoji<sup id="fnref:🥰"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:🥰" class="footnote-ref" title="🥰" role="doc-noteref">9</a></sup> compatible.</p>

<p>Although some may be split if they use ZWJ<sup id="fnref:zwj"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:zwj" class="footnote-ref" title="👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍…" role="doc-noteref">10</a></sup>.</p>

<h2 id="every-element"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#every-element">Every Element</a></h2>

<p>These are the <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element">HTML elements</a> which display textual content - and some notes on where unusual things might happen.</p>

<ul>
<li><p><code>&lt;a&gt;</code><sup id="fnref:a"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:a" class="footnote-ref" title="links This is a link to a website" role="doc-noteref">11</a></sup> works, but doesn't show the destination of the link.</p></li>
<li><p><code>&lt;abbr&gt;</code><sup id="fnref:abbr"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:abbr" class="footnote-ref" title="What about abbr?" role="doc-noteref">12</a></sup> The title text doesn't show.</p></li>
<li><p><code>&lt;address&gt;</code><sup id="fnref:address"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:address" class="footnote-ref" title="My email is:&nbsp;me@example.com" role="doc-noteref">13</a></sup></p></li>
<li><p><code>&lt;area&gt; / &lt;map&gt;</code><sup id="fnref:area"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:area" class="footnote-ref" title="Click to go Left" role="doc-noteref">14</a></sup> alt text shows.</p></li>
<li><p><code>&lt;article&gt;</code><sup id="fnref:article"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:article" class="footnote-ref" title="Text inside an article." role="doc-noteref">15</a></sup></p></li>
<li><p><code>&lt;aside&gt;</code><sup id="fnref:aside"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:aside" class="footnote-ref" title="This is an aside" role="doc-noteref">16</a></sup></p></li>
<li><p><code>&lt;audio&gt;</code><sup id="fnref:audio"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:audio" class="footnote-ref" title="Your browser doesn't support audio playback. Download audio." role="doc-noteref">17</a></sup></p></li>
<li><p><code>&lt;b&gt;</code><sup id="fnref:b"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:b" class="footnote-ref" title="This is bold text" role="doc-noteref">18</a></sup></p></li>
<li><p><code>&lt;bdi&gt;</code><sup id="fnref:bdi"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:bdi" class="footnote-ref" title="الرجل القوي إيان: 4th place" role="doc-noteref">19</a></sup> The BDI algorithm isn't implemented.</p></li>
<li><p><code>&lt;bdo&gt;</code><sup id="fnref:bdo"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:bdo" class="footnote-ref" title="This text will go right to left." role="doc-noteref">20</a></sup> The override isn't implemented.</p></li>
<li><p><code>&lt;blockquote&gt;</code><sup id="fnref:blockquote"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:blockquote" class="footnote-ref" title="This text is in a blockquote." role="doc-noteref">21</a></sup></p></li>
<li><p><code>&lt;br&gt;</code><sup id="fnref:br"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:br" class="footnote-ref" title="This&nbsp;is&nbsp;on&nbsp;a&nbsp;new line. Which is nice&nbsp;isn't it?" role="doc-noteref">22</a></sup> changed to newlines - which works.</p></li>
<li><p><code>&lt;button&gt;</code><sup id="fnref:button"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:button" class="footnote-ref" title="Add to favourites" role="doc-noteref">23</a></sup></p></li>
<li><p><code>&lt;cite&gt;</code><sup id="fnref:cite"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:cite" class="footnote-ref" title="More information can be found in [ISO-0000]" role="doc-noteref">24</a></sup></p></li>
<li><p><code>&lt;code&gt;</code><sup id="fnref:code"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:code" class="footnote-ref" title="The push() method adds one or more elements to the end of an array and returns the new length of the array." role="doc-noteref">25</a></sup></p></li>
<li><p><code>&lt;data&gt;</code><sup id="fnref:data"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:data" class="footnote-ref" title="High Score" role="doc-noteref">26</a></sup> Doesn't show the value.</p></li>
<li><p><code>&lt;del&gt;</code><sup id="fnref:del"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:del" class="footnote-ref" title="There is nothing" role="doc-noteref">27</a></sup></p></li>
<li><p><code>&lt;details&gt;&lt;summary&gt;</code><sup id="fnref:details"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:details" class="footnote-ref" title="Details
 Something small enough to escape casual notice." role="doc-noteref">28</a></sup></p></li>
<li><p><code>&lt;dfn&gt;</code><sup id="fnref:dfn"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:dfn" class="footnote-ref" title="The HST is among the most productive scientific instruments ever constructed. It has been in orbit for over 20 years, scanning the sky and returning data and photographs of unprecedented quality and…" role="doc-noteref">29</a></sup></p></li>
<li><p><code>&lt;dialog&gt;</code><sup id="fnref:dialog"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:dialog" class="footnote-ref" title="Greetings, one and all!" role="doc-noteref">30</a></sup></p></li>
<li><p><code>&lt;div&gt;</code><sup id="fnref:div"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:div" class="footnote-ref" title="Everyone loves a div" role="doc-noteref">31</a></sup></p></li>
<li><p><code>&lt;dl&gt;&lt;dt&gt;&lt;dd&gt;</code><sup id="fnref:dl"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:dl" class="footnote-ref" title="Beast of Bodmin
 A large feline inhabiting Bodmin Moor.

 Morgawr
 A sea serpent.

 Owlman
 A giant owl-like creature." role="doc-noteref">32</a></sup></p></li>
<li><p><code>&lt;em&gt;</code><sup id="fnref:em"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:em" class="footnote-ref" title="Get out of bed now!" role="doc-noteref">33</a></sup></p></li>
<li><p><code>&lt;fieldset&gt;&lt;legend&gt;</code><sup id="fnref:fieldset"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:fieldset" class="footnote-ref" title="Choose your favorite monster" role="doc-noteref">34</a></sup></p></li>
<li><p><code>&lt;figure&gt;&lt;figcaption&gt;</code><sup id="fnref:figure"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:figure" class="footnote-ref" title="Photo of a kitten.This is my favourite cat." role="doc-noteref">35</a></sup></p></li>
<li><p><code>&lt;footer&gt;</code><sup id="fnref:footer"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:footer" class="footnote-ref" title="I'm not sure this would ever be in a footnote!" role="doc-noteref">36</a></sup></p></li>
<li><p><code>&lt;form&gt;</code><sup id="fnref:form"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:form" class="footnote-ref" title="Enter your name:" role="doc-noteref">37</a></sup></p></li>
<li><p><code>&lt;h1&gt;</code><sup id="fnref:h1"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:h1" class="footnote-ref" title="Do Headers Work?" role="doc-noteref">38</a></sup></p></li>
<li><p><code>&lt;header&gt;</code><sup id="fnref:header"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:header" class="footnote-ref" title="Cute Puppies Express!" role="doc-noteref">39</a></sup></p></li>
<li><p><code>&lt;hgroup&gt;</code><sup id="fnref:hgroup"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:hgroup" class="footnote-ref" title="Frankenstein
 Or: The Modern Prometheus" role="doc-noteref">40</a></sup></p></li>
<li><p><code>&lt;i&gt;</code><sup id="fnref:i"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:i" class="footnote-ref" title="I thought This can't be real!" role="doc-noteref">41</a></sup></p></li>
<li><p><code>&lt;img&gt;</code><sup id="fnref2:img"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:img" class="footnote-ref" title="This is snuggle. Photo of a cute kitten. Everyone wants to be a cat." role="doc-noteref">3</a></sup></p></li>
<li><p><code>&lt;ins&gt;</code><sup id="fnref:ins"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:ins" class="footnote-ref" title="“A wizard is never late…”" role="doc-noteref">42</a></sup> datetime isn't shown.</p></li>
<li><p><code>&lt;kbd&gt;</code><sup id="fnref:kbd"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:kbd" class="footnote-ref" title="Please press Ctrl + Shift + R to re-render a page." role="doc-noteref">43</a></sup></p></li>
<li><p><code>&lt;label&gt;</code><sup id="fnref:label"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:label" class="footnote-ref" title="Do you like cheese?" role="doc-noteref">44</a></sup></p></li>
<li><p><code>&lt;mark&gt;</code><sup id="fnref:mark"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:mark" class="footnote-ref" title="Several species of salamander inhabit the temperate rainforest of the Pacific Northwest." role="doc-noteref">45</a></sup></p></li>
<li><p><code>&lt;menu&gt;&lt;li&gt;</code><sup id="fnref:menu"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:menu" class="footnote-ref" title="Save for later
Share this news" role="doc-noteref">46</a></sup></p></li>
<li><p><code>&lt;meter&gt;</code><sup id="fnref:meter"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:meter" class="footnote-ref" title="at 50/100" role="doc-noteref">47</a></sup></p></li>
<li><p><code>&lt;nav&gt;</code><sup id="fnref:nav"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:nav" class="footnote-ref" title="Links to navigation" role="doc-noteref">48</a></sup></p></li>
<li><p><code>&lt;ol&gt;&lt;li&gt;</code><sup id="fnref:ol"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:ol" class="footnote-ref" title="Buy ingredients
 Make cake
 Eat cake" role="doc-noteref">49</a></sup></p></li>
<li><p><code>&lt;optgroup&gt;</code><sup id="fnref:optgroup"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:optgroup" class="footnote-ref" title="Tyrannosaurus
 Velociraptor
 Deinonychus


 Diplodocus
 Saltasaurus
 Apatosaurus" role="doc-noteref">50</a></sup></p></li>
<li><p><code>&lt;option&gt;</code><sup id="fnref:option"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:option" class="footnote-ref" title="--Please choose an option--
Dog
Cat
Hamster
Parrot
Spider
Goldfish" role="doc-noteref">51</a></sup></p></li>
<li><p><code>&lt;output&gt;</code><sup id="fnref:output"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:output" class="footnote-ref" title="This is the output" role="doc-noteref">52</a></sup></p></li>
<li><p><code>&lt;p&gt;</code><sup id="fnref:p"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:p" class="footnote-ref" title="A paragraph of text." role="doc-noteref">53</a></sup></p></li>
<li><p><code>&lt;picture&gt;&lt;source&gt;</code><sup id="fnref:picture"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:picture" class="footnote-ref" title="A cool surfer dude." role="doc-noteref">54</a></sup></p></li>
<li><p><code>&lt;pre&gt;</code><sup id="fnref:pre"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:pre" class="footnote-ref" title="Preformated text" role="doc-noteref">55</a></sup></p></li>
<li><p><code>&lt;progress&gt;</code><sup id="fnref:progress"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:progress" class="footnote-ref" title="70%" role="doc-noteref">56</a></sup></p></li>
<li><p><code>&lt;q&gt;</code><sup id="fnref:q"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:q" class="footnote-ref" title="When Dave asks HAL to open the pod bay door, HAL answers: I'm sorry, Dave. I'm afraid I can't do that.<" role="doc-noteref">57</a></sup></p></li>
<li><p><code>&lt;ruby&gt;&lt;rp&gt;&lt;rt&gt;</code><sup id="fnref:ruby"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:ruby" class="footnote-ref" title="漢 (kan)
字 (ji)" role="doc-noteref">58</a></sup></p></li>
<li><p><code>&lt;s&gt;</code><sup id="fnref:s"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:s" class="footnote-ref" title="This is struck" role="doc-noteref">59</a></sup> It isn't possible to show a strikethrough in a tooltip.</p></li>
<li><p><code>&lt;samp&gt;</code><sup id="fnref:samp"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:samp" class="footnote-ref" title="Keyboard not found &nbsp;Press F1 to continue" role="doc-noteref">60</a></sup></p></li>
<li><p><code>&lt;section&gt;</code><sup id="fnref:section"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:section" class="footnote-ref" title="This is a section." role="doc-noteref">61</a></sup></p></li>
<li><p><code>&lt;select&gt;</code><sup id="fnref:select"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:select" class="footnote-ref" title="--Please choose an option--
Dog
Cat
Hamster
Parrot
Spider
Goldfish" role="doc-noteref">62</a></sup></p></li>
<li><p><code>&lt;small&gt;</code><sup id="fnref:small"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:small" class="footnote-ref" title="Some very small text." role="doc-noteref">63</a></sup></p></li>
<li><p><code>&lt;span&gt;</code><sup id="fnref:span"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:span" class="footnote-ref" title="This text is spanned" role="doc-noteref">64</a></sup></p></li>
<li><p><code>&lt;strong&gt;</code><sup id="fnref:strong"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:strong" class="footnote-ref" title="This is super strong" role="doc-noteref">65</a></sup></p></li>
<li><p><code>&lt;sub&gt;</code><sup id="fnref:sub"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:sub" class="footnote-ref" title="H20" role="doc-noteref">66</a></sup> Subscript formatting isn't available in title text</p></li>
<li><p><code>&lt;sup&gt;</code><sup id="fnref:sup"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:sup" class="footnote-ref" title="E=mc2" role="doc-noteref">67</a></sup> Neither is superscript</p></li>
<li><p><code>&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;&lt;tbody&gt;&lt;td&gt;&lt;tfoot&gt;&lt;caption&gt;&lt;colgroup&gt;&lt;col&gt;</code><sup id="fnref:table"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:table" class="footnote-ref" title="The table header
 



 




The table body
 with two columns
 

Footer
 A demo table" role="doc-noteref">68</a></sup></p></li>
<li><p><code>&lt;textarea&gt;</code><sup id="fnref:textarea"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:textarea" class="footnote-ref" title="It was a dark and stormy night..." role="doc-noteref">69</a></sup></p></li>
<li><p><code>&lt;time&gt;</code><sup id="fnref:time"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:time" class="footnote-ref" title="The concert starts at 20:00" role="doc-noteref">70</a></sup> datetime isn't displayed</p></li>
<li><p><code>&lt;u&gt;</code><sup id="fnref:u"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:u" class="footnote-ref" title="You could use this element to highlight speling mistakes" role="doc-noteref">71</a></sup></p></li>
<li><p><code>&lt;ul&gt;</code><sup id="fnref:ul"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:ul" class="footnote-ref" title="CatsDogsSheep" role="doc-noteref">72</a></sup> If there is no space between the elements, the tooltip may look odd. Here, the HTML is <code></code></p></li><code>
</code></ul><code>

<ul><li>Cats</li><li>Dogs</li><li>Sheep</li></ul>

</code><p><code></code></p>

<ul>
<li><p><code>&lt;var&gt;</code><sup id="fnref:var"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:var" class="footnote-ref" title="The volume of a box is l × w × h, where l represents the length, w the width and h the height of the box." role="doc-noteref">73</a></sup></p></li>
<li><p><code>&lt;video&gt;</code><sup id="fnref:video"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:video" class="footnote-ref" title="Download the WEBM or MP4 video." role="doc-noteref">74</a></sup></p></li>
<li><p><code>&lt;wbr&gt;</code><sup id="fnref:wbr"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fn:wbr" class="footnote-ref" title="Fernstraßenbauprivatfinanzierungsgesetz" role="doc-noteref">75</a></sup></p></li>
</ul>

<h2 id="get-involved"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#get-involved">Get involved</a></h2>

<p>If you'd like to peruse my code or offer a suggestion, <a href="https://github.com/michelf/php-markdown/issues/387">take a look at this GitHub issue</a>.</p>

<div id="footnotes" role="doc-endnotes">
<hr aria-label="Footnotes">
<ol start="0">

<li id="fn:demo">
<p>You should be able to read this text in a pop-up.&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:demo" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:html">
<p><a href="https://example.com/">Using <em>HTML</em> and <strong>nested <em>elements</em></strong></a>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:html" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:md">
<p>Some Markdown <em>emphasis</em> and a <a href="https://example.com">link</a> <strong>exciting!</strong>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:md" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:img">
<p>This is snuggle. <img src="https://placecats.com/100/100" alt="Photo of a cute kitten."> Everyone wants to be a cat.&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:img" class="footnote-backref" role="doc-backlink">↩︎</a> <a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref2:img" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:ent">
<p>Entity support &amp; or &amp; &lt; or &lt; £ and £.&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:ent" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:quote">
<p>"&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:quote" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:nest">
<p><span>This <strong>is nested in <em>multiple</em> elements</strong></span>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:nest" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:long">
<p>Sensors indicate no shuttle or other ships in this sector. According to coordinates, we have travelled 7,000 light years and are located near the system J-25. Tractor beam released, sir. Force field maintaining our hull integrity. Damage report? Sections 27, 28 and 29 on decks four, five and six destroyed. Without our shields, at this range it is probable a photon detonation could destroy the Enterprise.&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:long" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:中国文">
<p>两位皇子，你们各拥党羽，雄心勃勃地争取国柄和皇座，我们现在代表民众告诉你们：罗马人民已经众口一辞，公举素有忠诚之名的安德洛尼克斯作为统治罗马的君王，因为他曾经为罗马立下许多丰功伟绩，在今日的邦城之内，没有一个比他更高贵的男子，更英勇的战士。他这次奉着元老院的召唤，从征讨野蛮的哥特人的辛苦的战役中回国；凭着他们父子使敌人破胆的声威，已经镇伏了一个强悍善战的民族。自从他为了罗马的光荣开始出征、用武力膺惩我们敌人的骄傲以来，已经费了十年的时间；他曾经五次流着血护送他的战死疆场的英勇的儿子们的灵榇回到罗马来；现在这位善良的安德洛尼克斯，雄名远播的泰特斯，终于满载着光荣的战利品，旌旗招展，奏凯班师了。凭着你们所希望克绳遗武的先皇陛下的名义，凭着你们在表面上尊崇的议会的权力，让我们请求你们各自退下，解散你们的随从，用和平而谦卑的态度，根据你们本身的才德，提出你们合法的要求。&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:中国文" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:🥰">
<p>🥰&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:🥰" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:zwj">
<p>👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲👨‍🦲&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:zwj" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:a">
<p>links <a href="https://example.com/">This is a link to a website</a>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:a" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:abbr">
<p>What about <abbr title="Abbreviation">abbr</abbr>?&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:abbr" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:address">
<address>My email is:<br><a href="mailto:me@example.com">me@example.com</a></address>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:address" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:area">
<p><map name="test"><area shape="circle" coords="75,75,75" href="https://example.com/" alt="Click to go Left"></map>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:area" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:article">
<article>Text inside an article.</article>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:article" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:aside">
<aside>This is an aside</aside>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:aside" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:audio">
<p><audio controls="" src="https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3">Your browser doesn't support audio playback. <a href="https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3">Download audio</a>.</audio>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:audio" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:b">
<p>This is <b>bold text</b>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:b" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:bdi">
<p><bdi class="name">الرجل القوي إيان</bdi>: 4th place&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:bdi" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:bdo">
<p><bdo dir="rtl">This text will go right to left.</bdo>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:bdo" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:blockquote">
<blockquote>This text is in a blockquote.</blockquote>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:blockquote" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:br">
<p>This<br>is<br>on<br>a<br>new line. Which is nice<br>isn't it?&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:br" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:button">
<p><button type="button">Add to favourites</button>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:button" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:cite">
<p>More information can be found in <cite>[ISO-0000]</cite>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:cite" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:code">
<p>The <code>push()</code> method adds one or more elements to the end of an array and returns the new length of the array.&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:code" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:data">
<p><data value="12345">High Score</data>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:data" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:del">
<p>There is <del>nothing</del>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:del" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:details">
<details>
    <summary>Details</summary>
    Something small enough to escape casual notice.
</details>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:details" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:dfn">
<p>The <dfn><abbr title="Hubble Space Telescope">HST</abbr></dfn> is among the most productive scientific instruments ever constructed. It has been in orbit for over 20 years, scanning the sky and returning data and photographs of unprecedented quality and detail.&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:dfn" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:dialog">
<p></p><dialog open="">Greetings, one and all!</dialog>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:dialog" class="footnote-backref" role="doc-backlink">↩︎</a><p></p>
</li>

<li id="fn:div">
<div>Everyone loves a div</div>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:div" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:dl">
<dl>
    <dt>Beast of Bodmin</dt>
    <dd>A large feline inhabiting Bodmin Moor.</dd>

    <dt>Morgawr</dt>
    <dd>A sea serpent.</dd>

    <dt>Owlman</dt>
    <dd>A giant owl-like creature.</dd>
</dl>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:dl" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:em">
<p>Get out of bed <em>now</em>!&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:em" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:fieldset">
<fieldset><legend>Choose your favorite monster</legend></fieldset>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:fieldset" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:figure">
<figure>
    <img src="https://placecats.com/200" alt="Photo of a kitten."><figcaption>This is my favourite cat.</figcaption>
</figure>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:figure" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:footer">
<footer>I'm not sure this would ever be in a footnote!</footer>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:footer" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:form">
<form action=""><label for="name">Enter your name: </label><input type="text" name="name" id="name" required=""><input type="submit" value="Subscribe!"></form>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:form" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:h1">
<h1 id="do-headers-work"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#do-headers-work">Do Headers Work?</a></h1>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:h1" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:header">
<header>Cute Puppies Express!</header>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:header" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:hgroup">
<hgroup>
    <h1 id="frankenstein"><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#frankenstein">Frankenstein</a></h1>
    <p>Or: The Modern Prometheus</p>
</hgroup>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:hgroup" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:i">
<p>I thought <i>This can't be real!</i>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:i" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:ins">
<p><ins datetime="2018-05">“A wizard is never late…”</ins>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:ins" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:kbd">
<p>Please press <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>R</kbd> to re-render a page.&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:kbd" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:label">
<p><label for="cheese">Do you like cheese?</label><input type="checkbox" name="cheese" id="cheese">&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:label" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:mark">
<p>Several species of <mark>salamander</mark> inhabit the temperate rainforest of the Pacific Northwest.&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:mark" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:menu">
<p></p><menu>
<li><button id="save">Save for later</button></li>
<li><button id="share">Share this news</button></li>
</menu>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:menu" class="footnote-backref" role="doc-backlink">↩︎</a><p></p>
</li>

<li id="fn:meter">
<p><meter id="fuel" min="0" max="100" low="33" high="66" optimum="80" value="50">at 50/100</meter>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:meter" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:nav">
<nav>Links to navigation</nav>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:nav" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:ol">
<ol>
    <li>Buy ingredients</li>
    <li>Make cake</li>
    <li>Eat cake</li>
</ol>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:ol" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:optgroup">
<p><select id="dino-select">
<optgroup label="Theropods">
    <option>Tyrannosaurus</option>
    <option>Velociraptor</option>
    <option>Deinonychus</option>
</optgroup>
<optgroup label="Sauropods">
    <option>Diplodocus</option>
    <option>Saltasaurus</option>
    <option>Apatosaurus</option>
</optgroup>
</select>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:optgroup" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:option">
<p><select id="pet-select">
<option value="">--Please choose an option--</option>
<option value="dog">Dog</option>
<option value="cat">Cat</option>
<option value="hamster">Hamster</option>
<option value="parrot">Parrot</option>
<option value="spider">Spider</option>
<option value="goldfish">Goldfish</option>
</select>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:option" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:output">
<p><output name="result" for="a b">This is the output</output>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:output" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:p">
<p>A paragraph of text.&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:p" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:picture">
<p><picture></picture></p>

<source srcset="https://interactive-examples.mdn.mozilla.net/media/cc0-images/surfer-240-200.jpg" media="(orientation: portrait)">

<p><img src="https://interactive-examples.mdn.mozilla.net/media/cc0-images/painted-hand-298-332.jpg" alt="A cool surfer dude.">
&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:picture" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:pre">
<pre>Preformated text</pre>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:pre" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:progress">
<p><progress id="file" max="100" value="70">70%</progress>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:progress" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:q">
<p>When Dave asks HAL to open the pod bay door, HAL answers: <q cite="https://www.imdb.com/title/tt0062622/quotes/qt0396921">I'm sorry, Dave. I'm afraid I can't do that.</q>&lt;&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:q" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:ruby">
<p><ruby>
漢 <rp>(</rp><rt>kan</rt><rp>)</rp>
字 <rp>(</rp><rt>ji</rt><rp>)</rp>
</ruby>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:ruby" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:s">
<p>This is <s>struck</s>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:s" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:samp">
<p><samp>Keyboard not found <br>Press F1 to continue</samp>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:samp" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:section">
<section>This is a section.</section>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:section" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:select">
<p><select name="pets" id="pet-select">
<option value="">--Please choose an option--</option>
<option value="dog">Dog</option>
<option value="cat">Cat</option>
<option value="hamster">Hamster</option>
<option value="parrot">Parrot</option>
<option value="spider">Spider</option>
<option value="goldfish">Goldfish</option>
</select>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:select" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:small">
<p>Some <small>very small</small> text.&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:small" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:span">
<p>This text is <span>spanned</span>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:span" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:strong">
<p>This <strong>is super strong</strong>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:strong" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:sub">
<p>H<sub>2</sub>0&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:sub" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:sup">
<p>E=mc<sup>2</sup>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:sup" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:table">
<table>
    <thead>
        <tr>
            <th colspan="2">The table header</th>
        </tr>
    </thead>
    <tbody>
</tbody><colgroup>
        <col>
        <col span="2" class="batman">
        <col span="2" class="flash">
    </colgroup>
        <tbody><tr>
            <td>The table body</td>
            <td>with two columns</td>
        </tr>
    </tbody>
    <tfoot><tr><td>Footer</td></tr></tfoot>
    <caption>A demo table</caption>
</table>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:table" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:textarea">
<p><textarea>It was a dark and stormy night...</textarea>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:textarea" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:time">
<p>The concert starts at <time datetime="20:00">20:00</time>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:time" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:u">
<p>You could use this element to highlight <u>speling</u> mistakes&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:u" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:ul">
<ul>
    <li>Cats</li><li>Dogs</li><li>Sheep</li>
</ul>

<p><a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:ul" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:var">
<p>The volume of a box is <var>l</var> × <var>w</var> × <var>h</var>, where <var>l</var> represents the length, <var>w</var> the width and <var>h</var> the height of the box.&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:var" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:video">
<p><video controls="" width="250"><source src="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm" type="video/webm"><source src="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4" type="video/mp4">Download the <a href="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm">WEBM</a> or <a href="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4">MP4</a> video.</video>&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:video" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:wbr">
<p>Fernstraßen<wbr>bau<wbr>privat<wbr>finanzierungs<wbr>gesetz&nbsp;<a href="https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/#fnref:wbr" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

</ol>
</div>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=44576&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2023/04/testing-better-markdown-footnotes/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		<enclosure url="https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3" length="39868" type="audio/mpeg" />
<enclosure url="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm" length="554058" type="video/webm" />
<enclosure url="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4" length="1128375" type="video/mp4" />

			</item>
		<item>
		<title><![CDATA[Zotero citations in Markdown - publishing to ePub or PDF]]></title>
		<link>https://shkspr.mobi/blog/2022/11/zotero-citations-in-markdown-publishing-to-epub-or-pdf/</link>
					<comments>https://shkspr.mobi/blog/2022/11/zotero-citations-in-markdown-publishing-to-epub-or-pdf/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Wed, 23 Nov 2022 12:34:22 +0000</pubDate>
				<category><![CDATA[/etc/]]></category>
		<category><![CDATA[citation]]></category>
		<category><![CDATA[markdown]]></category>
		<category><![CDATA[MSc]]></category>
		<category><![CDATA[NaBloPoMo]]></category>
		<category><![CDATA[zotero]]></category>
		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=43835</guid>

					<description><![CDATA[Mostly notes to myself - I hope you find them useful.  So, you want to write your dissertation or thesis in Markdown. But how do you manage all your citations?   Install Zotero Install the Better BibTex plugin Restart Zotero. The BBT plugin will launch a configuration screen - use it to set your preferences Install VS Code (or VS Codium) Install the VS Code Zotero plugin   Now, when you want to…]]></description>
										<content:encoded><![CDATA[<p>Mostly notes to myself - I hope you find them useful.</p>

<p>So, you want to write your dissertation or thesis in Markdown. But how do you manage all your citations?</p>

<ol>
<li>Install <a href="https://www.zotero.org/">Zotero</a></li>
<li>Install the <a href="https://retorque.re/zotero-better-bibtex/">Better BibTex plugin</a></li>
<li>Restart Zotero. The BBT plugin will launch a configuration screen - use it to set your preferences</li>
<li>Install <a href="https://code.visualstudio.com/">VS Code</a> (or <a href="https://github.com/VSCodium/vscodium">VS Codium</a>)</li>
<li>Install the <a href="https://github.com/mblode/vscode-zotero">VS Code Zotero plugin</a></li>
</ol>

<p>Now, when you want to enter a citation in Markdown, the combined plugins will generate something like this:</p>

<pre><code class="language-markdown">## Abstract

Space is really big @adamsHitchhiker1979
</code></pre>

<p>That <code>@adamsHitchhiker1979</code> is the citation.</p>

<h2 id="formatting-citations"><a href="https://shkspr.mobi/blog/2022/11/zotero-citations-in-markdown-publishing-to-epub-or-pdf/#formatting-citations">Formatting citations</a></h2>

<p>You want to export your Markdown to something like ePub or PDF with nicely formatted citations like <code>(Adams, 1979)</code></p>

<p>Use Pandoc!</p>

<ol>
<li>Install <a href="https://pandoc.org/">Pandoc</a></li>
<li>In Zotero, use File → Export Library. Export in Better BibTex format as <code>test.bib</code>.</li>
</ol>

<p>Add the following configuration section to the top of your Markdown file:</p>

<pre><code class="language-markdown">---
bibliography: test.bib
...
</code></pre>

<p>Run the following command:</p>

<p><code>pandoc --citeproc test.md -o test.epub</code></p>

<p>Hey presto! You now have a nicely formatted ePub with all the citations in your preferred format, and the bibliography at the end.</p>

<h2 id="format-the-citations-better"><a href="https://shkspr.mobi/blog/2022/11/zotero-citations-in-markdown-publishing-to-epub-or-pdf/#format-the-citations-better">Format the citations better</a></h2>

<p>The citations don't look the way I want them to!</p>

<ol>
<li>Download your preferred <a href="https://www.zotero.org/styles">Citation Style from Zotero</a>, save it as <code>whatever.csl</code></li>
<li>Add the following into your Markdown file's configuration section <code>csl: whatever.csl</code></li>
<li><strong>Important</strong> Make sure that your citations are wrapped in <code>[</code> and <code>]</code> otherwise Pandoc will mess things up. See <a href="https://pandoc.org/MANUAL.html#extension-citations">the Pandoc Citations Extension</a> for more details.</li>
</ol>

<p>Your Markdown should look something like this:</p>

<pre><code class="language-markdown">---
bibliography: test.bib
csl: whatever.csl
link-citations: true
...

# Intro

Computers are complicated [@verletComputerExperimentsClassical1967].
</code></pre>

<p>Then run <code>pandoc --citeproc test.md -o test.epub</code> - you can change the file type to html, pdf, or anything else your system supports.</p>

<h2 id="make-it-look-even-nicer"><a href="https://shkspr.mobi/blog/2022/11/zotero-citations-in-markdown-publishing-to-epub-or-pdf/#make-it-look-even-nicer">Make it look even nicer</a></h2>

<p>This is the boilerplate that I use.</p>

<pre><code class="language-markdown">---
bibliography: test.bib
csl: whatever.csl
link-citations: true
reference-section-title: References
title: My brilliant title
...

# Intro

Computers are complicated [@verletComputerExperimentsClassical1967].

## Something

More info [@smithEvolutionInnovationCapability2017]

&lt;div id="refs"&gt;
## References
&lt;/div&gt;

## The End
Goodbye!
</code></pre>

<p>That gives you a title, ensures that all in-text citations link down to the references, and <a href="https://pandoc.org/MANUAL.html#placement-of-the-bibliography">puts the references somewhere other than the end</a>.  Here's the HTML it produces using <code>pandoc --citeproc test.md -o bib.html</code> :</p>

<pre><code class="language-html">&lt;h1 id="intro"&gt;Intro&lt;/h1&gt;
&lt;p&gt;Computers are complicated &lt;span class="citation" data-cites="verletComputerExperimentsClassical1967"&gt;(&lt;a
         href="https://shkspr.mobi/blog/2022/11/zotero-citations-in-markdown-publishing-to-epub-or-pdf/#ref-verletComputerExperimentsClassical1967" role="doc-biblioref"&gt;Verlet, 1967&lt;/a&gt;)&lt;/span&gt;.&lt;/p&gt;
&lt;h2 id="something"&gt;Something&lt;/h2&gt;
&lt;p&gt;More info &lt;span class="citation" data-cites="smithEvolutionInnovationCapability2017"&gt;(&lt;a
         href="https://shkspr.mobi/blog/2022/11/zotero-citations-in-markdown-publishing-to-epub-or-pdf/#ref-smithEvolutionInnovationCapability2017" role="doc-biblioref"&gt;Smith &lt;em&gt;et al.&lt;/em&gt;, 2017&lt;/a&gt;)&lt;/span&gt;
&lt;/p&gt;
&lt;div id="refs" class="references csl-bib-body" role="doc-bibliography"&gt;
   &lt;h2 id="references"&gt;References&lt;/h2&gt;
   &lt;div id="ref-smithEvolutionInnovationCapability2017" class="csl-entry" role="doc-biblioentry"&gt;
      Smith, C. &lt;em&gt;et al.&lt;/em&gt; (2017) &lt;span&gt;‘The &lt;span&gt;Evolution&lt;/span&gt; of an
         &lt;span&gt;Innovation Capability&lt;/span&gt;’&lt;/span&gt;, &lt;em&gt;Research-Technology
         Management&lt;/em&gt;, 60(2), pp. 26–35. Available at: &lt;a
         href="https://doi.org/10.1080/08956308.2017.1276388"&gt;https://doi.org/10.1080/08956308.2017.1276388&lt;/a&gt;.
   &lt;/div&gt;
   &lt;div id="ref-verletComputerExperimentsClassical1967" class="csl-entry" role="doc-biblioentry"&gt;
      Verlet, L. (1967) &lt;span&gt;‘Computer "&lt;span&gt;Experiments&lt;/span&gt;" on
         &lt;span&gt;Classical Fluids&lt;/span&gt;. &lt;span&gt;I&lt;/span&gt;. &lt;span&gt;Thermodynamical
            Properties&lt;/span&gt; of &lt;span&gt;Lennard-Jones Molecules&lt;/span&gt;’&lt;/span&gt;,
      &lt;em&gt;Physical Review&lt;/em&gt;, 159(1), pp. 98–103. Available at: &lt;a
         href="https://doi.org/10.1103/PhysRev.159.98"&gt;https://doi.org/10.1103/PhysRev.159.98&lt;/a&gt;.
   &lt;/div&gt;
&lt;/div&gt;
&lt;h2 id="the-end"&gt;The End&lt;/h2&gt;
&lt;p&gt;Goodbye!&lt;/p&gt;
</code></pre>

<p>If that was useful to you - or if you think you know a better way - please drop a comment in the box.</p>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=43835&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2022/11/zotero-citations-in-markdown-publishing-to-epub-or-pdf/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title><![CDATA[Better Footnotes in WordPress JetPack]]></title>
		<link>https://shkspr.mobi/blog/2021/10/better-footnotes-in-wordpress-jetpack/</link>
					<comments>https://shkspr.mobi/blog/2021/10/better-footnotes-in-wordpress-jetpack/#respond</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Sun, 24 Oct 2021 11:34:47 +0000</pubDate>
				<category><![CDATA[/etc/]]></category>
		<category><![CDATA[footnotes]]></category>
		<category><![CDATA[jetpack]]></category>
		<category><![CDATA[markdown]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=40717</guid>

					<description><![CDATA[Previously, I&#039;ve written about using Footnotes in WordPress Markdown.  A reader notified me that the footnotes weren&#039;t very accessible. This blog post describes the problem and proposes a solution.  The Problem  Using WordPress&#039;s JetPack, markdown footnotes are rendered as:  Some text &#60;sup id=&#34;fnref-1234-1&#34;&#62;&#60;a href=&#34;#fn-1234-1&#34; class=&#34;jetpack-footnote&#34;&#62;1&#60;/a&#62;&#60;/sup&#62; ... &#60;li id=&#34;fn-1234-1&#34;&#62;The…]]></description>
										<content:encoded><![CDATA[<p>Previously, I've written about using <a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/">Footnotes in WordPress Markdown</a>.  A reader notified me that the footnotes<sup id="fnref:fn"><a href="https://shkspr.mobi/blog/2021/10/better-footnotes-in-wordpress-jetpack/#fn:fn" class="footnote-ref" title="Like this!" role="doc-noteref">0</a></sup> weren't very accessible. This blog post describes the problem and proposes a solution.</p>

<h2 id="the-problem"><a href="https://shkspr.mobi/blog/2021/10/better-footnotes-in-wordpress-jetpack/#the-problem">The Problem</a></h2>

<p>Using WordPress's JetPack, markdown footnotes are rendered as:</p>

<pre><code class="language-html">Some text &lt;sup id="fnref-1234-1"&gt;&lt;a href="https://shkspr.mobi/blog/2021/10/better-footnotes-in-wordpress-jetpack/#fn-1234-1" class="jetpack-footnote"&gt;1&lt;/a&gt;&lt;/sup&gt;
...
&lt;li id="fn-1234-1"&gt;The footnotes.&nbsp;&lt;a href="https://shkspr.mobi/blog/2021/10/better-footnotes-in-wordpress-jetpack/#fnref-1234-1"&gt;↩&lt;/a&gt;&lt;/li&gt;
</code></pre>

<p>There are two main problems with this:</p>

<ol>
<li>The <code>&lt;sup&gt;1&lt;/sup&gt;</code> doesn't announce the destination of the link.</li>
<li>The ↩ may be read out as "leftwards arrow with hook"</li>
</ol>

<p>Ideally, it would be useful to have something like:</p>

<pre><code class="language-html">&lt;a href="https://shkspr.mobi/blog/2021/10/better-footnotes-in-wordpress-jetpack/#fn-1234-1" aria-label="Read footnote 1" ...
</code></pre>

<p>and</p>

<pre><code class="language-html">&lt;a href="https://shkspr.mobi/blog/2021/10/better-footnotes-in-wordpress-jetpack/#fnref-1234-1" aria-label="Return to main content"&gt;↩&lt;/a&gt;
</code></pre>

<p>Or similar.</p>

<h2 id="the-solution"><a href="https://shkspr.mobi/blog/2021/10/better-footnotes-in-wordpress-jetpack/#the-solution">The Solution</a></h2>

<p>The issue occurs in <code>jetpack/_inc/lib/markdown/extra.php</code></p>

<pre><code class="language-php">@define( 'MARKDOWN_FN_LINK_TITLE',     "" );
@define( 'MARKDOWN_FN_BACKLINK_TITLE', "" );
</code></pre>

<p>The link and backlink titles are used later in the same file to set the title.</p>

<pre><code class="language-php">if ($this-&gt;fn_backlink_title != "") {
    $title = $this-&gt;fn_backlink_title;
    $title = $this-&gt;encodeAttribute($title);
    $attr .= " title=\"$title\"";
}
</code></pre>

<p>But, because they're never set, the code doesn't run.</p>

<p>It's pretty easy to hotfix this. Replace the above definitions with:</p>

<pre><code class="language-php">@define( 'MARKDOWN_FN_LINK_TITLE',     __( 'Read footnote.', 'jetpack' ) );
@define( 'MARKDOWN_FN_BACKLINK_TITLE', __( 'Return to main content.', 'jetpack' ) );
</code></pre>

<p>I've <a href="https://github.com/Automattic/jetpack/issues/21371">raised this as an issue on GitHub</a>.</p>

<h2 id="problems-with-the-solution"><a href="https://shkspr.mobi/blog/2021/10/better-footnotes-in-wordpress-jetpack/#problems-with-the-solution">Problems with the solution.</a></h2>

<ul>
<li>It will be overwritten when JetPack updates. You can also add the new <code>@define</code>s to your theme if you want them to survive updates.</li>
<li>I'm not sure if <code>title</code> is the right element. Although it seems has the same precedence as <code>aria-label</code> in the <a href="https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_te">Accessible Name and Description Computation algorithm</a></li>
<li>It is in English only. Because those strings don't exit in the translation file, it will only work for monolingual installs.</li>
<li>The title text shows as a pop-up on certain browsers.</li>
<li>No metadata. It might be nice to have the <code>title</code> say "Read footnote <strong>23</strong>."</li>
<li>Some footnote plugins put the footnote text in the <code>title</code>. That may be useful.</li>
</ul>

<p>If you'd like to see this in the default JetPack experience - please <a href="https://github.com/Automattic/jetpack/issues/21371">leave a comment on GitHub</a>.</p>

<div id="footnotes" role="doc-endnotes">
<hr aria-label="Footnotes">
<ol start="0">

<li id="fn:fn">
<p>Like this!&nbsp;<a href="https://shkspr.mobi/blog/2021/10/better-footnotes-in-wordpress-jetpack/#fnref:fn" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

</ol>
</div>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=40717&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2021/10/better-footnotes-in-wordpress-jetpack/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title><![CDATA[Footnotes in Markdown]]></title>
		<link>https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/</link>
					<comments>https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Tue, 24 Aug 2021 11:56:50 +0000</pubDate>
				<category><![CDATA[/etc/]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[markdown]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=39934</guid>

					<description><![CDATA[Did you know - WordPress Markdown supports footnotes?  There is some documentation but I thought I&#039;d write a slightly more comprehensive guide.  The code is pretty simple. Write [^1] where you want your first footnote link to appear. Then, later in the document, write [^1]: The text of the note.  It doesn&#039;t matter what number you put inside the [^…], WordPress automatically generates a sequential …]]></description>
										<content:encoded><![CDATA[<p>Did you know - WordPress Markdown supports footnotes<sup id="fnref:1"><a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fn:1" class="footnote-ref" title="Footnotes are hyperlinks which direct the user to some explanatory text. WordPress also automatically includes a link back to the text you were reading." role="doc-noteref">0</a></sup>?  There is <a href="https://wordpress.com/support/markdown-quick-reference/#foot">some documentation</a> but I thought I'd write a slightly more comprehensive guide.</p>

<p>The code is pretty simple. Write <code>[^1]</code> where you want your first footnote link to appear. Then, later in the document, write <code>[^1]: The text of the note</code>.</p>

<p>It doesn't matter what number you put inside the <code>[^…]</code>, WordPress automatically generates a sequential number when displaying the links. For example, this one is <code>[^3]</code><sup id="fnref:3"><a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fn:3" class="footnote-ref" title="But to you, should look like 1. Magic!" role="doc-noteref">1</a></sup></p>

<p>In order to keep your thoughts straight while writing and editing, you can give your footnotes names - like <code>[^fn about names]</code><sup id="fnref:fn about names"><a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fn:fn%20about%20names" class="footnote-ref" title="The footnote link can contain spaces. Which is nifty." role="doc-noteref">2</a></sup>. If you want, you can also use emoji<sup id="fnref:👉"><a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fn:👉" class="footnote-ref" title="Emoji? You've never heard of Emoji?!" role="doc-noteref">3</a></sup>. When you click that link, the emoji should appear in your URl bar.</p>

<p>Similarly, you can write the footnote text next to where you want the link to appear.  Something like:</p>

<pre><code class="language-_">Something like[^5] 
[^5]: See!
</code></pre>

<p>should work fine<sup id="fnref:5"><a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fn:5" class="footnote-ref" title="See!" role="doc-noteref">4</a></sup>.</p>

<p>Sadly<sup id="fnref:sad"><a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fn:sad" class="footnote-ref" title="Well, it makes me sad..." role="doc-noteref">5</a></sup>, there's no such thing as a <code>&lt;footnote&gt;</code> element<sup id="fnref:elephant"><a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fn:elephant" class="footnote-ref" title="Nor elephant" role="doc-noteref">6</a></sup> in <a href="https://html.spec.whatwg.org/multipage/semantics-other.html#footnotes">HTML</a></p>

<p>WordPress automagically puts the footnotes at the end of your page in this structure:</p>

<pre><code class="language-html">&amp;lt;div class=&amp;quot;footnotes&amp;quot;&amp;gt;
   &amp;lt;hr&amp;gt;
   &amp;lt;ol&amp;gt;
      &amp;lt;li id=&amp;quot;fn-1234-1&amp;quot;&amp;gt; ... &amp;lt;a href=&amp;quot;#fnref-1234-1&amp;quot;&amp;gt;↩&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
...
</code></pre>

<p>This means you can style the <code>div</code> and <code>hr</code><sup id="fnref:hr"><a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fn:hr" class="footnote-ref" title="As I have so beautifully done here." role="doc-noteref">7</a></sup>.  The number after <code>fn-</code> is the WordPress post ID.</p>

<p>There are a few other things to be aware of<sup id="fnref:7"><a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fn:7" class="footnote-ref" title="While they can't be recursive, a footnote can have its own footnote - if you think that would be useful." role="doc-noteref">8</a></sup>, but they're pretty easy to use. No plugins required, no expensive themes. Just cool in-built functionality.</p>

<p>Enjoy!<span style="display:none;"><sup id="fnref:hidden"><a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fn:hidden" class="footnote-ref" title="You can also hide them if you want to be silly." role="doc-noteref">9</a></sup></span></p>

<div id="footnotes" role="doc-endnotes">
<hr aria-label="Footnotes">
<ol start="0">

<li id="fn:1">
<p>Footnotes are hyperlinks which direct the user to some explanatory text. WordPress also automatically includes a link back to the text you were reading.&nbsp;<a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fnref:1" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:3">
<p>But to you, should look like <sup>1</sup>. Magic!&nbsp;<a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fnref:3" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:fn about names">
<p>The footnote link can contain spaces. Which is nifty.&nbsp;<a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fnref:fn%20about%20names" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:👉">
<p>Emoji? You've never heard of <em>Emoji</em>?!&nbsp;<a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fnref:👉" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:5">
<p>See!&nbsp;<a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fnref:5" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:sad">
<p>Well, it makes <em>me</em> sad...&nbsp;<a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fnref:sad" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:elephant">
<p>Nor elephant&nbsp;<a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fnref:elephant" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:hr">
<p>As I have so beautifully done here.&nbsp;<a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fnref:hr" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:7">
<p>While they can't be recursive, a footnote can have its own footnote<sup id="fnref:9"><a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fn:9" class="footnote-ref" title="Just like Terry Pratchett!" role="doc-noteref">10</a></sup> - if you think that would be useful.&nbsp;<a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fnref:7" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:hidden">
<p>You can also hide them if you want to be silly.&nbsp;<a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fnref:hidden" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:9">
<p>Just like Terry Pratchett!&nbsp;<a href="https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/#fnref:9" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

</ol>
</div>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=39934&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2021/08/footnotes-in-markdown/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
