# Custom Markdown Content Missing

**URL:** https://meta.discourse.org/t/custom-markdown-content-missing/150458
**Category:** Development
**Created:** [May 5, 2020, 2:41pm UTC](https://meta.discourse.org/t/custom-markdown-content-missing/150458 "2020-05-05T14:41:58Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ledadu](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@ledadu](https://meta.discourse.org/u/ledadu)
#### Post date: [December 15, 2021, 9:29pm UTC](https://meta.discourse.org/t/custom-markdown-content-missing/150458/2 "2021-12-15T21:29:19Z")

</div>

```plaintext
token = state.push("span_open", "span", 1);

// Add this line :
token = state.push('text', '', 0);

token.content = content;
token = state.push("span_close", "span", -1);

```

**Source :**

> [@Custom BBCode Help/Advice](https://meta.discourse.org/t/custom-bbcode-help-advice/84005/3):
>
> tag: 'vote', replace: (state, tagInfo, content) =\> { let token; token = state.push('span\_open', 'span', 1); token.attrs = [['class', 'vote']]; token = state.push('text', '', 0); token.content = 'VOTE:' + content; token = state.push('span\_close', 'span', -1); return true; }, }); Basically did this and defined a new vote class that was the same as highlight’s but also with bold. I tried a lot of silly thing without tokens and without defini…

---

_[View the full topic](https://meta.discourse.org/t/custom-markdown-content-missing/150458)._
