I\'m trying to make text which is either invisible until moused over, or, has a \"show\" / \"hide\" button, or some other thing, so that it is not visible
Building on Gaurav's answer and this GH issue here's a way to use advanced formatting inside the
tag on GitHub:
Note: original answer from 2016 required , since 2017 that requirement is an empty line after
(i.e. before expanded contents). Somewhere along the line leading up to 2019, markdown in
is not working any more either. You can see it's quite flaky as it's a hack/workaround, not a supported feature/use case. Also note that issue/PR comments support different formatting than Wikis (e.g. 2020 April underline in summary only works on Wiki, not on issues).
stuff with *mark* **down** in `summary` doesn't work any more, use HTML italics and bold instead in <summary>
(click to expand)
## *formatted* **heading** with [a](link)
```java
code block
```
nested stuff (click to expand)
A bit more than normal indentation is necessary to get the nesting correct,
1. list
1. with
1. nested
1. items
```java
// including code
```
1. blocks
1. and continued non-nested
Currently it renders as the following with the expected parts expandable and collapsible: