# Add custom markdown quote bbcode tags

**URL:** <https://meta.discourse.org/t/add-custom-markdown-quote-bbcode-tags/345910>\
**Category:** Development\
**Tags:** plugin-api\
**Created:** [January 7, 2025, 1:28am UTC](https://meta.discourse.org/t/add-custom-markdown-quote-bbcode-tags/345910 "2025-01-07T01:28:13Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ego-lay\_atman-bay](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ego-lay_atman-bay/32/255458_2.png) [@ego-lay\_atman-bay](https://meta.discourse.org/u/ego-lay_atman-bay)\
**Post date:** [January 7, 2025, 1:28am UTC](https://meta.discourse.org/t/add-custom-markdown-quote-bbcode-tags/345910/1 "2025-01-07T01:28:13Z")

</div>

I am developing a discourse extension to display [snapblocks](https://snap-blocks.github.io). I was able to add bbcode tags that get replaced with the blocks, unfortunately if you select to quote the blocks, you get the text in the block in a code block instead of the original bbcode tag.

I have tried looking through the source code for the spoiler plugin, but I can’t figure out what it’s doing to allow quoting spoilers.

Is there a way to fix this and add the original block code text inside the custom bbcode tags?

Here’s the source code for my plugin I’m developing.  
[https://github.com/snap-blocks/snapblocks-discourse](https://github.com/snap-blocks/snapblocks-discourse)

Something that really annoys me, is that there is no standard documentation that is easy to go through, which has made developing my plugin a lot harder.

---

_[View the full topic](https://meta.discourse.org/t/add-custom-markdown-quote-bbcode-tags/345910)._
