4

In a recent question of mine, I encountered what I think is a bug when I tried to put a regular blockquote between two spoilers:

Text:

!This is spoiler 1.

"This is the regular blockquote".

!This is spoiler #2.

As you can see, it renders everything as one big blockquote as well as the exclamation points that are supposed to make something a "Spoiler". Trying to make the middle blockquote into a spoiler, resulting in three sooilers in a row, also fails.

!Spoiler 1

!Spoiler 2

!Spoiler 3

It happens on both the mobile site and the full site.

  • 2
    Spoiler blocks aren't fully implemented by design so you'll find a lot of strange goings on with them. – TheLethalCarrot Aug 19 at 10:29
7

This is spoiler 1.

"This is the regular blockquote".

This is spoiler #2.

Is this what you want?

Code for the above:

>!This is spoiler 1.

<!>

>"This is the regular blockquote".

<!>

>!This is spoiler #2. 
  • @Spencer I just put a non-displayed entity in between, such as <!> – Alex Aug 18 at 2:33
  • 1
    @Alex I remember once someone on Main Meta got quite annoyed at me for doing that; this kind of stuff seems to be frowned upon. – Stormblessed Aug 18 at 3:29
  • @Stormblessed Why? – Alex Aug 18 at 3:36
  • 1
    @Alex I don’t know, ask Sonic the Anonymous whatever. – Stormblessed Aug 18 at 3:40
  • 4
    @Stormblessed Just because Sonic doesn't like something, doesn't mean it's "frowned upon" in general. – Rand al'Thor Aug 18 at 15:25
  • 2
    @Spencer I've edited Alex's answer to add the code for how it was produced. – Rand al'Thor Aug 18 at 15:25
  • Looking at the emitted HTML, those <!> thingies seem to be producing empty <p> tags, which is semantically incorrect since a "paragraph" should contain text (but I'm really surprised that anyone would notice or care). I suppose a screen reader might mishandle them, but honestly, I'd expect them to either skip it or just say "paragraph no text" or something like that. – Kevin Aug 20 at 2:24
  • @RandAlThor Thanks. – Spencer Aug 20 at 9:36
  • @Kevin Maybe it should be something like <!/> then. – Spencer Aug 20 at 9:37
  • @Stormblessed Also, if there's a specific discussion on 'main' or 'meta' then, try to link to it, otherwise it sounds like people's opinions and we'll simply ignore it. – Möoz Aug 21 at 22:55
  • 1
    You can also use a HTML comment <!-- --> which will not be translated into anything. – Mr Lister Aug 22 at 11:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .