Generic bbcode wrapper for theme components

Recently we expanded this to support generic components using:

```customblock param=1
```

This will be translated to:

<pre data-code-param="1" data-code-wrap="customblock"><code class="lang-nohighlight"></code></pre>

Thus as a component you can use data-code-wrap to determine special handling and syntax highlighting is disabled.

We used this pattern here:

Which is an official mermaid theme component.

9 Likes