# Implement mark to custom node

**URL:** <https://discuss.prosemirror.net/t/implement-mark-to-custom-node/3769>\
**Category:** Uncategorized\
**Created:** [May 14, 2021, 10:02am UTC](https://discuss.prosemirror.net/t/implement-mark-to-custom-node/3769 "2021-05-14T10:02:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![inc](https://discuss.prosemirror.net/letter_avatar_proxy/v4/letter/i/b19c9b/32.png) [@inc](https://discuss.prosemirror.net/u/inc)\
**Post date:** [May 14, 2021, 10:02am UTC](https://discuss.prosemirror.net/t/implement-mark-to-custom-node/3769/1 "2021-05-14T10:02:02Z")

</div>

Hi!

I have a custom node that has a size of 1 (as all custom nodes). But inside this node, I have a text to which I want to apply marks (like make it bold, italic, etc). Is there a way to do it? I’ve tried a lot of different ways to somehow handle it but it all not working.

Maybe, somebody faced the same problem and find a way to somehow do it?

Will be thankful for any help.

---

<div class="post-metadata">

**Author:** ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)\
**Post date:** [May 14, 2021, 4:09pm UTC](https://discuss.prosemirror.net/t/implement-mark-to-custom-node/3769/2 "2021-05-14T16:09:30Z")

</div>

Nodes only have a size of 1 when they don’t have content—nodes that allow content will have a size of 2 + the content’s size, and thus allow you to address the nodes inside them.
