# Anchor links only in HTML, not in feeds?

**URL:** <https://zola.discourse.group/t/anchor-links-only-in-html-not-in-feeds/1621>\
**Category:** Uncategorized\
**Created:** [January 22, 2023, 6:38pm UTC](https://zola.discourse.group/t/anchor-links-only-in-html-not-in-feeds/1621 "2023-01-22T18:38:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgdm](https://avatars.discourse-cdn.com/v4/letter/m/9de0a6/32.png) [@mgdm](https://zola.discourse.group/u/mgdm)\
**Post date:** [January 22, 2023, 6:38pm UTC](https://zola.discourse.group/t/anchor-links-only-in-html-not-in-feeds/1621/1 "2023-01-22T18:38:01Z")

</div>

I’ve got my own version of the `anchor-link.html` template, which works well in HTML, but the image I’m using doesn’t make a lot of sense when viewed with an RSS reader. I’m wondering if there is a way to detect when the template is being rendered for a feed, and to have it return different content, or no content at all? I couldn’t find any variables in the `__tera_context` that looked like they would help here.

---

<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:** [January 22, 2023, 7:33pm UTC](https://zola.discourse.group/t/anchor-links-only-in-html-not-in-feeds/1621/2 "2023-01-22T19:33:52Z")

</div>

The markdown is rendered only once, there’s no context. You could write a custom feed template and somehow remove them from the HTML?

---

<div class="post-metadata">

**Author:** ![mgdm](https://avatars.discourse-cdn.com/v4/letter/m/9de0a6/32.png) [@mgdm](https://zola.discourse.group/u/mgdm)\
**Post date:** [January 22, 2023, 8:56pm UTC](https://zola.discourse.group/t/anchor-links-only-in-html-not-in-feeds/1621/3 "2023-01-22T20:56:13Z")

</div>

Would I need to remove them using the `replace` filter? There’s enough HTML that it would be fiddly, unless `replace` were to accept a regex.
