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 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.