# Generic bbcode wrapper for theme components

**URL:** <https://meta.discourse.org/t/generic-bbcode-wrapper-for-theme-components/123516>\
**Category:** Announcements\
**Tags:** new-feature\
**Created:** [July 20, 2019, 12:48pm UTC](https://meta.discourse.org/t/generic-bbcode-wrapper-for-theme-components/123516 "2019-07-20T12:48:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lcestou](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lcestou/32/148373_2.png) [@lcestou](https://meta.discourse.org/u/lcestou)\
**Post date:** [July 22, 2019, 5:49am UTC](https://meta.discourse.org/t/generic-bbcode-wrapper-for-theme-components/123516/2 "2019-07-22T05:49:44Z")

</div>

Hello Joffrey,

Thanks for suggesting this feature in the other topic.

I was excited to try to use it and see if it worked for my case, however I encountered a problem.

It seems to ignore attribute names that has multiple hyphens in between and defaults to only pick the characters after the last hyphen.

I am using v2.4.0.beta2 +33, I apologize if this has been fixed in a newer commit since.

Examples:

```
// No multiple hyphen this works fine: data-bloodmallet="chart".
[wrap=test bloodmallet=chart]Content[/wrap]

// This way it omits "user" from the attribute name and output is data-id="1" instead of data-user-id="1".
[wrap=test2 user-id=1]Content[/wrap]

```

This following request is optional: Is there a way to not wrap the content inside the div with `<p>` tag?

Thanks for this feature and hopefully I can use it to fix my problem!

---

_[View the full topic](https://meta.discourse.org/t/generic-bbcode-wrapper-for-theme-components/123516)._
