# Markdown render hooks extra space

**URL:** <https://discourse.gohugo.io/t/markdown-render-hooks-extra-space/27446>\
**Category:** support\
**Created:** [August 8, 2020, 11:36pm UTC](https://discourse.gohugo.io/t/markdown-render-hooks-extra-space/27446 "2020-08-08T23:36:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [August 11, 2020, 8:51pm UTC](https://discourse.gohugo.io/t/markdown-render-hooks-extra-space/27446/5 "2020-08-11T20:51:15Z")

</div>

> [@OdairTrujillo](#):
>
> I just have one single line of code.

Yes, and as @pamubay pointed out, it ends with a newline character.

If your file did _not_ end with a newline character, the following command would display the `>` character:

```auto
tail -c 1 layouts/_default/_markup/render-link.html

```

Instead, the above command produced a blank line, indicating that your file ends with a newline character.

Add this at the end of your file to consume the newline:

```auto
{{- /* This comment removes trailing newlines. */ -}}

```

---

_[View the full topic](https://discourse.gohugo.io/t/markdown-render-hooks-extra-space/27446)._
