Request - Spoiler tag compatible with markdown codeblock
I am in a discord server for an online course (scrimba).
I wanted to post something related to a challenge and wanted to mark my answer with the spoiler tag to not show people.
I tried ||``` x ```|| and ```|| x ||``` neither worked. When I added a space between || and ``` like this || ``` x ``` || the spaces above and below the code block both showed the spoiler cover and when clicking on one it revealed both sides as I expected.
Here is an image showing an example of what || ``` x ``` || looks like.

-
A possible suggestion might be to allow it inside the markdown eg: ```|| Hellow World ||```
0 -
I'd disagree with ModernKiwi on this: special characters inside triple backquotes should never be evaluated (except for the closing triple-backquotes). The ||``` spoilered code ```|| usage should just be made to work as expected.
2 -
I agree with you in that aspect, the content was originally my thought on what should be easier to integrate, but I forgot that || is also used in multiple languages.
0
Vui lòng đăng nhập để lại bình luận.
Bình luận
3 bình luận