Modifying markdown output

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.

You can use markdown render hooks.

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