title: How to show/hide text in learnr tutorial / rmarkdown document?
body: <p>Question: is there an easy way to toggle show/hide text in learnr tutorials? I know that you can use code folding in rmarkdown to show/hide code but what I'd like to do is have a &quot;show answer&quot; which then shows a paragraph explaining something. Quite often I find with teaching statistics that I want a student to have a look at something and think about it, and then see if what they think agrees with what I think. A toggle show/hide text (or just show hidden text) would be really handy.</p>
  <p>Not really great with css and totally at sea with javascript so if possible an explanation for a 3-year old would be appreciated :-)</p>
  <p>Any advice gratefully received.</p>