# Custom BBCode Help/Advice

**URL:** <https://meta.discourse.org/t/custom-bbcode-help-advice/84005>\
**Category:** Development\
**Created:** [March 28, 2018, 12:03am UTC](https://meta.discourse.org/t/custom-bbcode-help-advice/84005 "2018-03-28T00:03:12Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Ellibereth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ellibereth/32/202896_2.png) [@Ellibereth](https://meta.discourse.org/u/Ellibereth)\
**Post date:** [March 28, 2018, 12:03am UTC](https://meta.discourse.org/t/custom-bbcode-help-advice/84005/1 "2018-03-28T00:03:12Z")

</div>

UPDATE: Figured it out!

* * *

I’m trying to make make a plugin that makes a custom bbcode that maps

`[vote]name[/vote]`  
to  
` <p><span class="highlight"><b>VOTE:name</b></span></p>`

I’ve been reading the stuff in [this topic](https://meta.discourse.org/t/developers-guide-to-markdown-extensions/66023) along with going through the various bbcode plugin repos that exist, and If I’m understanding the examples correctly the only relevant nontrivial places I have to change would be the stuff after wrap here

```
ruler.push('vote',{
    tag: 'vote',
    wrap: 
  });

```

and the stuff in square brackets here:

`replaceBBCode("vote", contents => [].concat(contents));`

I’ve tried a few things but none of them have worked as intended. I’d appreciate if anyone could help with this/point me towards what documentation/examples I’m missing and should read to make this and future similar things easier. Sorry if this is fairly trivial - I’m new to this.

Thanks.

---

_[View the full topic](https://meta.discourse.org/t/custom-bbcode-help-advice/84005)._
