# Pull highlighted text out of doc

**URL:** https://community.fibery.io/t/pull-highlighted-text-out-of-doc/2834
**Category:** Get Help
**Tags:** formulas
**Created:** [May 22, 2022, 3:47pm UTC](https://community.fibery.io/t/pull-highlighted-text-out-of-doc/2834 "2022-05-22T15:47:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Sarah\_Arminta](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/sarah_arminta/32/4915_2.png) [@Sarah\_Arminta](https://community.fibery.io/u/Sarah_Arminta)
#### Post date: [May 22, 2022, 3:47pm UTC](https://community.fibery.io/t/pull-highlighted-text-out-of-doc/2834/1 "2022-05-22T15:47:42Z")

</div>

I have a doc field which has some highlighted sections. Can I create another field and use a formula to pull out these highlights?

---

<div class="post-metadata">

### Author: ![mdubakov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mdubakov/32/10_2.png) [@mdubakov](https://community.fibery.io/u/mdubakov)
#### Post date: [May 23, 2022, 1:54pm UTC](https://community.fibery.io/t/pull-highlighted-text-out-of-doc/2834/2 "2022-05-23T13:54:57Z")

</div>

Unfortunately it is not possible to access parts of rich text in Fibery via API or Formulas.

---

<div class="post-metadata">

### Author: ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)
#### Post date: [May 23, 2022, 2:34pm UTC](https://community.fibery.io/t/pull-highlighted-text-out-of-doc/2834/3 "2022-05-23T14:34:25Z")

</div>

Just to be clear, it is possible to get the contents of a rich text field (using a script like below) but it is not possible to see from the resultant markdown which bits of the text have been highlighted.

```auto
const fibery = context.getService('fibery');
for (const entity of args.currentEntities) {
    const x = await fibery.getEntityById(entity.Type, entity.Id, ['Name', 'Description']);
    const markdownContent = await fibery.getDocumentContent(x["Description"].secret, `md`);
    console.log(markdownContent);
};

```

---

<div class="post-metadata">

### Author: ![Sarah\_Arminta](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/sarah_arminta/32/4915_2.png) [@Sarah\_Arminta](https://community.fibery.io/u/Sarah_Arminta)
#### Post date: [May 24, 2022, 2:24am UTC](https://community.fibery.io/t/pull-highlighted-text-out-of-doc/2834/4 "2022-05-24T02:24:05Z")

</div>

I can do this in Coda like so:

```auto
ParseJson(thisRow.Notes._Merge() + "", "$..[?(@.highlight == 'Yellow')].text")

```

Would be nice to have this in Fibery!
