# New line in footnote in markdown sends (return) to the next line

**URL:** <https://discourse.gohugo.io/t/new-line-in-footnote-in-markdown-sends-return-to-the-next-line/18236>\
**Category:** support\
**Tags:** footnotes\
**Created:** [April 21, 2019, 11:04pm UTC](https://discourse.gohugo.io/t/new-line-in-footnote-in-markdown-sends-return-to-the-next-line/18236 "2019-04-21T23:04:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![parsiya](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/parsiya/32/1218_2.png) [@parsiya](https://discourse.gohugo.io/u/parsiya)\
**Post date:** [April 21, 2019, 11:04pm UTC](https://discourse.gohugo.io/t/new-line-in-footnote-in-markdown-sends-return-to-the-next-line/18236/1 "2019-04-21T23:04:17Z")

</div>

I think this is a BlackFriday issue. But here’s the problem.

If there’s a new line in the footnote in markdown, the [return] at the end of the footnote is sent to a new line.

```markdown
footnote with new lines[^newline]

footnote without new lines[^nonewline]

<!-- Footnotes -->
[^newline]: This is the first line of the footnote.
    This is the second line.
[^nonewline]: No new lines in this footnote.

```

The resulting HTML looks like this:

```html
<ol>
	<li id="fn:newline">
		<p>This is the first line.
This is the second line.</p>
		<a class="footnote-return" href="#fnref:newline">
			<sup>[return]</sup>
		</a>
	</li>
	<li id="fn:nonewline">No new lines in this footnote.
 
		<a class="footnote-return" href="#fnref:nonewline">
			<sup>[return]</sup>
		</a>
	</li>
</ol>

```

Screenshot:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/2/2f707cee9f99416ffe9a22bca75bc0646e701eaf.png)

As you can see, the first footnote text is wrapped in `<p>` and then the return link is added.

I tried on multiple themes and the output is always the same. Has anyone else encountered this issue and/or knows a workaround (apart from having the footnote on one long line)?

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [April 21, 2019, 11:51pm UTC](https://discourse.gohugo.io/t/new-line-in-footnote-in-markdown-sends-return-to-the-next-line/18236/2 "2019-04-21T23:51:06Z")

</div>

I don’t. I searched their issues, and only found:

> <https://github.com/russross/blackfriday/issues/413>

Which doesn’t appear to be your issue. Hopefully someone has a work around! 🙂

---

<div class="post-metadata">

**Author:** ![parsiya](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/parsiya/32/1218_2.png) [@parsiya](https://discourse.gohugo.io/u/parsiya)\
**Post date:** [April 22, 2019, 3:21am UTC](https://discourse.gohugo.io/t/new-line-in-footnote-in-markdown-sends-return-to-the-next-line/18236/3 "2019-04-22T03:21:49Z")

</div>

Thanks. Yes, indenting the second line fixes the issue on Github.  
I will keep putting the footnote on the same line for now until we can find a workaround.
