Skip to content

Details html tag messes with fence block code snippets inside the tag.

While trying to reduce the space taken by code snippets in an issue comment, the HTML details tag may be convenient for this, but it breaks rendering code snippets.

This is an example of what I am trying to do:

Find a solution in this sniippet of code

Hopefully you tried to solve this yourself before peeking!

def hello(name)
  "Hello #{name}!"
end

Thanks for working through it. Remember this is only one way to solve this problem.

As you can see, this does not seem to work as intended.

I also noticed that you use this the <details> html tag in the templates to create issues here. I can imagine this already exists as an issue, internally.