Weird glitch whilst editing and including `[details]` elements

AI-generated summary

A user, DeanMarkTaylor, reported a weird glitch when editing a post that included [details] elements. The glitch incorrectly modified the [details] tags to <details>. zogstrip acknowledged the issue and pushed a fix, linking to the commit on GitHub. However, zogstrip also explained that the current workaround to support nested BBCode tags is the only available option.

Are the arrows fixed position or something?

EDIT: Here is the text I was editing at the time:

####Initial Random Backfill
[details=Executed in ~64.5ms]
<img src="//cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/3X/f/6/f6c48125485a771c6649092e15683c5189944813.png" width="690" height="219"> 
[/details]

####Random Selection
[details=Executed in ~6.2ms]
<img src="//cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/3X/8/7/87f95ccac1e27c3ffcda6fb488168efbc9bb4b8a.png" width="690" height="410"> 
[/details]

####In-category `ORDER BY topics.bumped_at`
This
[details=Executed in ~112ms]
<img src="//cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/3X/5/f/5f56af13568d1061d2d1c4b73dd20977b21a8030.png" width="690" height="236"> 
[/details]

EDIT 2: the actual raw of the post uses [details] tags and something is incorrectly modifying them to <details> - see: https://meta.discourse.org/raw/25672

1 Like

Thanks for reporting that. I just pushed a fix :camel:

https://github.com/discourse/discourse-details/commit/8c6e02df0e805d6903c509633223974f575c02f0


Yeah, that’s unfortunately our only option to support nested BBCode tags…

3 Likes