Spoiler tag weirdness/post preview gone

So the “blur spoiler” tags are wonky, causing paragraph breaks like

this

that I can’t fix without getting rid of the spoiler tag.

And also my post preview window is gone.

Is there anything I can do to mitigate this?

You can toggle the post compose window back to markdown mode! It’s this thing on the far left:
image

1 Like

Yay! I never noticed that before. Thanks, Tabitha!

1 Like
So the “blur spoiler” tags are wonky, causing paragraph breaks like 

[spoiler]
this

[/spoiler]

You can blur spoilers inline like this.

You can blur spoilers inline like [spoiler]this[/spoiler].

1 Like

Huh-- I must have done it wrong earlier because I tried that and it didn’t work in a previous post. Got it now.

I believe you can only do the inline [spoiler] markup if you have the Markdown editor, not if you’re using the WYSIWYG editor.

3 Likes

Well, that explains why it didn’t work for me earlier. My 2 issues were connected.

Thanks for the help, y’all!

1 Like

I’ve been fighting with the Discourse team about this for a long time.

The way it works in Discourse is that you can only have two kinds of spoilers: “block” spoilers, which span any number of entire paragraphs, and “inline” spoilers, which affect any part of just one paragraph/line. You can’t have a single spoiler that spans parts of multiple paragraphs.

So, in Markdown mode:

Inline: [spoiler]this works[/spoiler]

Block:

[spoiler]
Para 1

Para 2
[/spoiler]

But you can't do this: [spoiler]starts inline

… spans multiple paragraphs

concludes incline[/spoiler] with more text

Inline: this works

Block:

Para 1

Para 2

But you can’t do this: [spoiler]starts inline

… spans multiple paragraphs

concludes incline[/spoiler] with more text

If you select parts of multiple paragraphs and try to blur spoilers on them, you’ll get buggy behavior.

In Markdown mode, if you select “starts inline” and select down to “concludes inline,” then use the “Blur Spoiler” tool, it will try to insert paragraph breaks before “starts inline” and after “concludes inline,” trying to turn the whole thing into a block spoiler, but it will fail to work, because they also needed to add a newline before [spoiler].

Selecting text across inline + block will do this:

But you can’t do this: [spoiler]
starts inline

… spans multiple paragraphs

concludes incline
[/spoiler] with more text

… but it should have at least done this:

But you can’t do this:

starts inline

… spans multiple paragraphs

concludes incline

with more text

In the non-Markdown editor, there’s a bug where it just deletes text if you select multiple paragraphs and try to spoiler blur them! They’re fixing that, but even in the best case, they’re going to make it work like the Markdown spoiler, where selecting multiple inline sections will turn them into block spoilers.

5 Likes

Switching editors, highlighting the word, pressing plus and “blur

spoiler

Yeah, that doesn’t work like it used to, but you can do it in markdown mode.