Details markup not working correctly in messages


(Alexander Wright) #1

Using the [details=Summary]This text will be hidden[/details] in a private message results in the Summary drop down appearing correctly, but the hidden text appearing immediately below, and not hidden as it would be in a topic post.

It does, however, work in the markup editor when you are writing the message.

(Régis Hanol) #2

I don’t think the issue is related to PM but rather the formatting of your post. Can you share the markup you’re having trouble with?

(Alexander Wright) #3

Yes as follows:

Finally, you can use the following form to encapsulate longer examples or inclusions to make the discussion easier to follow.

Typing this:

`[details=Summary]This text will be hidden[/details]`

Results in this:
[details=Summary]This text will be hidden[/details]

(Régis Hanol) #4

Try adding new lines around the BBCode tags :wink:

(Alexander Wright) #5

Ahh, that works. It did still display correctly in the editor though, so a bug for being inconsistent, if nothing else!

(Régis Hanol) #6

It will be fixed once we switch to a newer markdown engine :wink:

(Sam Saffron) #7

We “fix” this by correctly handling details now! [details=Summary]This text will not be hidden[/details]

why you wonder?

Because details is a “block” level construct, we never meant to support it inline. That was a bug.

CommonMark testing started here!
(Sam Saffron) closed #8