# Rendering anchors for markdown in templates?

**URL:** <https://zola.discourse.group/t/rendering-anchors-for-markdown-in-templates/2918>\
**Category:** Support\
**Created:** [March 19, 2026, 4:46pm UTC](https://zola.discourse.group/t/rendering-anchors-for-markdown-in-templates/2918 "2026-03-19T16:46:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthillco](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/matthillco/32/869_2.png) [@matthillco](https://zola.discourse.group/u/matthillco)\
**Post date:** [March 19, 2026, 4:46pm UTC](https://zola.discourse.group/t/rendering-anchors-for-markdown-in-templates/2918/1 "2026-03-19T16:46:45Z")

</div>

I’ve got this pattern for rendering some specific headings in templates:

`{{ “## Summary” | markdown | safe }}`

It works fine, but does not render either the built in anchor, or my custom one in a modified `anchor-link.html` partial.

How can I get markdown headings with anchors directly in my template?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [March 19, 2026, 9:39pm UTC](https://zola.discourse.group/t/rendering-anchors-for-markdown-in-templates/2918/2 "2026-03-19T21:39:32Z")

</div>

It should work in the `next` branch i think?
