# 如何处理带空行的导入Spoiler？

**URL:** <https://meta.discourse.org/t/how-to-best-handle-imported-spoilers-with-blank-lines/107819>\
**Category:** Product Support\
**Created:** [2019 年1 月 29 日 11:58 UTC](https://meta.discourse.org/t/how-to-best-handle-imported-spoilers-with-blank-lines/107819 "2019-01-29T11:58:29Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![Dannii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dannii/32/129087_2.png) [@Dannii](https://meta.discourse.org/u/Dannii)\
发布日期： [2019 年1 月 29 日 11:58 UTC](https://meta.discourse.org/t/how-to-best-handle-imported-spoilers-with-blank-lines/107819/1 "2019-01-29T11:58:29Z")

</div>

I’m migrating a phpBB3 forum, and have a lot of posts using `[spoiler]` tags. I’ve tired the discourse-spoiler-alert plugin, but it doesn’t detect multi-line spoilers with blank lines. Is there a way to make it do that, or is there a way to transform `[spoiler]` into [`details="Spoiler"]`?

I haven’t tried the “ruby-bbcode-to-md” import option yet. I might try that when I test the migration again. Actually, looks like it doesn’t support `[spoiler]` anyway.

---

_[View the full topic](https://meta.discourse.org/t/how-to-best-handle-imported-spoilers-with-blank-lines/107819)._
