Today I Learned

A Hashrocket project

Collapsable content in Github issues

Today I learned that we can use HTML 5 detail tag to wrap a bunch of lines. This is specially useful when reporting errors and its backtrace in a repository in Github.

<details>
  <summary>`foo`</summary>
  `` `ruby
  bar
  baz
  `` `
</details>

detail-tag

h/t by @ericclemmons