# Footnote problems with markdown

**URL:** <https://discourse.gohugo.io/t/footnote-problems-with-markdown/504>\
**Category:** support\
**Tags:** footnotes\
**Created:** [December 22, 2014, 8:37pm UTC](https://discourse.gohugo.io/t/footnote-problems-with-markdown/504 "2014-12-22T20:37:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![joncgoodwin](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@joncgoodwin](https://discourse.gohugo.io/u/joncgoodwin)\
**Post date:** [December 22, 2014, 8:37pm UTC](https://discourse.gohugo.io/t/footnote-problems-with-markdown/504/1 "2014-12-22T20:37:35Z")

</div>

I’m using v0.13-DEV buildDate: 2014-12-13T10:03:26-06:00. My footnotes are being generated like this:

```html
<sup class="footnote-ref" id="fnref:4e97c4f6dc307e09ab266d7ceea7b3d2:1"><a rel="footnote" href="#fn:4e97c4f6dc307e09ab266d7ceea7b3d2:1">1</a></sup>

<div class="footnotes">

<hr />

<ol>
<li id="fn:4e97c4f6dc307e09ab266d7ceea7b3d2:1"><p>Footnote reference</p>
 <a class="footnote-return" href="#fnref:4e97c4f6dc307e09ab266d7ceea7b3d2:1">↩</a></li>

```

These links are not working. (Here is an [full example](http://www.jgoodwin.net/blog/thinkpiercer/).) I suppose it should be clear why they are not, but I don’t know if it’s path problem or if it’s related to the apparently superfluous code generated in the hrefs.

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [December 22, 2014, 9:01pm UTC](https://discourse.gohugo.io/t/footnote-problems-with-markdown/504/2 "2014-12-22T21:01:02Z")

</div>

Weird. @halostatue would know better, but I use the same version and some footnotes on my stite with success:

> **[Lynrask A∕B-testing av stilsettendringar](https://bepsays.com/2014/11/08/lynrask-ab-testing-av-stilsettendringar/)**
>
> Om tykkjer det hadde vore kjekt å bla deg gjennom ulike utsjånadsvariantar av nettstaden din med eit tastetrykk – og sjå nye endringar smyge seg inn i nettlesaren…
> 
> Då bør du lese vidare. Dette kan gjerast med enkle grep.

It’s in Norwegian, but the footnotes works.

---

<div class="post-metadata">

**Author:** ![halostatue](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/halostatue/32/62_2.png) [@halostatue](https://discourse.gohugo.io/u/halostatue)\
**Post date:** [December 22, 2014, 9:26pm UTC](https://discourse.gohugo.io/t/footnote-problems-with-markdown/504/3 "2014-12-22T21:26:06Z")

</div>

I think it’s probably because of your header including `<base href="http://jgoodwin.net">`. I’m not sure that footnote URLs will work properly with `base href`, and that’s something in blackfriday. (I can think of how to fix it, but it’s Yet Another Option to Blackfriday to make it work.)

-a

---

<div class="post-metadata">

**Author:** ![joncgoodwin](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@joncgoodwin](https://discourse.gohugo.io/u/joncgoodwin)\
**Post date:** [December 22, 2014, 11:13pm UTC](https://discourse.gohugo.io/t/footnote-problems-with-markdown/504/4 "2014-12-22T23:13:45Z")

</div>

Removing the base href tag does fix it. I’ll have to see if that’s going to break links elsewhere.

---

<div class="post-metadata">

**Author:** ![juh2](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/juh2/32/3980_2.png) [@juh2](https://discourse.gohugo.io/u/juh2)\
**Post date:** [June 15, 2016, 4:19pm UTC](https://discourse.gohugo.io/t/footnote-problems-with-markdown/504/5 "2016-06-15T16:19:02Z")

</div>

Sorry for entering this old thread, but I ran into the same problems.

Removing the base href tag breaks the display of the tag page, so I can’t use this fix. Are there any other solutions?

---

<div class="post-metadata">

**Author:** ![halostatue](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/halostatue/32/62_2.png) [@halostatue](https://discourse.gohugo.io/u/halostatue)\
**Post date:** [June 15, 2016, 11:10pm UTC](https://discourse.gohugo.io/t/footnote-problems-with-markdown/504/6 "2016-06-15T23:10:28Z")

</div>

Probably not. `<base href>` prefixes _all_ relative links on a page with the provided href, including in-page links, and is generally a bad idea.

---

<div class="post-metadata">

**Author:** ![juh2](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/juh2/32/3980_2.png) [@juh2](https://discourse.gohugo.io/u/juh2)\
**Post date:** [June 16, 2016, 7:16am UTC](https://discourse.gohugo.io/t/footnote-problems-with-markdown/504/7 "2016-06-16T07:16:28Z")

</div>

Thanks a lot @halostatue. I now remove the tag and adjusted URLs on other pages. Now it seems to works.
