# Embedded Table of Content block in rich text fields

**URL:** <https://community.fibery.io/t/embedded-table-of-content-block-in-rich-text-fields/4927>\
**Category:** Ideas & Features\
**Tags:** rich-text\
**Created:** [August 8, 2023, 5:33pm UTC](https://community.fibery.io/t/embedded-table-of-content-block-in-rich-text-fields/4927 "2023-08-08T17:33:22Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Yuri\_BC](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/yuri_bc/32/8803_2.png) [@Yuri\_BC](https://community.fibery.io/u/Yuri_BC)\
**Post date:** [March 23, 2024, 6:23pm UTC](https://community.fibery.io/t/embedded-table-of-content-block-in-rich-text-fields/4927/7 "2024-03-23T18:23:51Z")

</div>

Workaround

> [@Table of Contents (TOC) with anchor links](https://community.fibery.io/t/table-of-contents-toc-with-anchor-links/6011):
>
> The script generates and appends a Table of Contents (TOC) for a rich text field (Description). It works by fetching the text, identifying headings and GUID anchor links to construct a TOC, and then updating the text with this TOC added at the beginning. In the gif I show two button automations, with and without ‘Callout’. [chrome\_4vWWRtma7Z] Explanation Note: I chose to use JSON fetching and saving because directly manipulating the document content via JSON ensures that the existing GUIDs in…

---

_[View the full topic](https://community.fibery.io/t/embedded-table-of-content-block-in-rich-text-fields/4927)._
