# 在帖子中白名单化某些 CSS 标签

**URL:** <https://meta.discourse.org/t/whitelisting-certain-css-tags-in-posts/152482>\
**Category:** Support\
**Created:** [2020年五月23日 20:05 UTC](https://meta.discourse.org/t/whitelisting-certain-css-tags-in-posts/152482 "2020-05-23T20:05:52Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [2020年五月25日 21:31 UTC](https://meta.discourse.org/t/whitelisting-certain-css-tags-in-posts/152482/4 "2020-05-25T21:31:21Z")

</div>

另外，请查看 `[wrap=` 方法：

> [@Generic bbcode wrapper for theme components](https://meta.discourse.org/t/generic-bbcode-wrapper-for-theme-components/123516):
>
> I added this feature a while back and realised I didn’t post about it. You can now use a special syntax in markdown to have it cooked and usable in theme components without having to write a plugin. // wrapped in div.d-wrap [wrap=baz foo=bar]Content[/wrap] // wrapped in div.d-wrap [wrap=baz foo=bar] Content [/wrap] // wrapped in div.d-wrap [wrap=baz foo=bar] [/wrap] // this one will be rendered as a span.d-wrap instead of a div.d-wrap a [wrap=baz]Content[/wrap] b The name of the component w…

---

_[View the full topic](https://meta.discourse.org/t/whitelisting-certain-css-tags-in-posts/152482)._
