7
$\begingroup$

In this answer, I used two hidden grey boxes, one after the other. However, I had some trouble getting them to format probably.

If you write

>! Line 1

>! Line 2

you get

! Line 1

! Line 2

In order to fix this, it seems that you have to place some text between the two lines. For example,

>! Line 1

$ $

>! Line 2

produces

Line 1

$ $

Line 2

as desired.

Is this necessary? If so, can it be fixed?

$\endgroup$
1

1 Answer 1

8
$\begingroup$

This is a known inconvenience: Consecutive spoiler blocks (>!) are shown as blockquotes, which is due to the design of spoiler syntax. It can be solved by inserting HTML comment <!--> or empty heading # to separate the blocks. This is better than MathJax-based hacks, as no JavaScript needs to run to render it.

Line 1

Line 2

was made with

>! Line 1

<!-->       
>! Line 2

Also,

Line 1

Line 2

was made with

>! Line 1

#       
>! Line 2
$\endgroup$

You must log in to answer this question.

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