# Backtick code fragments in TOC headings

**URL:** <https://zola.discourse.group/t/backtick-code-fragments-in-toc-headings/2856>\
**Category:** Uncategorized\
**Created:** [September 1, 2025, 10:40pm UTC](https://zola.discourse.group/t/backtick-code-fragments-in-toc-headings/2856 "2025-09-01T22:40:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccjmne](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/ccjmne/32/1499_2.png) [@ccjmne](https://zola.discourse.group/u/ccjmne)\
**Post date:** [September 1, 2025, 10:40pm UTC](https://zola.discourse.group/t/backtick-code-fragments-in-toc-headings/2856/1 "2025-09-01T22:40:55Z")

</div>

I write IT tech stuff, and some of my headings are much more easily grepped when they adequately use the inline `<code>`elements. Yep, even my subheadings’ titles, sometimes.

However, in Zola, it looks like the `Heading` currently only has `title` be a plain `String`. I’d very much like to have access to the original Markdown fragment (maybe?), so I could do something like:

```django
<a href="{{- h2.permalink | safe -}}">{{- h2.title_raw | markdown(inline=true) -}}</a>

```

I suppose it would be possible, but would want to check in with the community first regarding whether it’s at all desirable: there must have been a reason why this functionality was built the way it is in the first place!

What do you think?
