# Modifying markdown output

**URL:** <https://discourse.gohugo.io/t/modifying-markdown-output/29012>\
**Category:** support\
**Created:** [October 24, 2020, 11:16am UTC](https://discourse.gohugo.io/t/modifying-markdown-output/29012 "2020-10-24T11:16:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GothSeiDank](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/gothseidank/32/13028_2.png) [@GothSeiDank](https://discourse.gohugo.io/u/GothSeiDank)\
**Post date:** [October 24, 2020, 11:16am UTC](https://discourse.gohugo.io/t/modifying-markdown-output/29012/1 "2020-10-24T11:16:23Z")

</div>

Is there any way to modify certain tags in markdown or via templates by giving them some defaults? For example, I need

```
<a rel="noreferrer nofollow noopen" href="..">

```

for all external links.

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [October 24, 2020, 11:32am UTC](https://discourse.gohugo.io/t/modifying-markdown-output/29012/2 "2020-10-24T11:32:58Z")

</div>

You can use [markdown render hooks](https://gohugo.io/getting-started/configuration-markup/#markdown-render-hooks).

---

<div class="post-metadata">

**Author:** ![GothSeiDank](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/gothseidank/32/13028_2.png) [@GothSeiDank](https://discourse.gohugo.io/u/GothSeiDank)\
**Post date:** [October 24, 2020, 4:38pm UTC](https://discourse.gohugo.io/t/modifying-markdown-output/29012/3 "2020-10-24T16:38:21Z")

</div>

Thanks, the solution was actually right there. Somehow overlooked it.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [October 26, 2020, 4:38pm UTC](https://discourse.gohugo.io/t/modifying-markdown-output/29012/4 "2020-10-26T16:38:31Z")

</div>

Closed on October 26, 2020, 4:38pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
