Expandable / collapsible code blocks in github The text is shown on click. 1 2 3 4 <details> <summary>Click to expand</summary> your hidden code </details> Results: Click to expand your hidden code Source