Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hidden markdown text on GitHub

Is there anything in markdown syntax specifically on GitHub to support hidden text?

I just want to put some to-do notes in README.md for myself, not to be visible.


EXTRAS

As a tribute to the great answer by Tamas, and what's also asked a lot of times, below is an example of how to write foldable sections within MD files:

<details> <summary><b>My section header in bold</b></summary>  Any folded content here. It requires an empty line just above it.  </details> 
like image 834
vitaly-t Avatar asked Oct 13 '17 17:10

vitaly-t


People also ask

Does Markdown support collapsible sections?

Short Answer: No, Markdown does not offer a feature like that directly, but with some work you might be able to build something that works. For a feature like that to work you would need some CSS and/or JavaScript to control the animations, etc.


1 Answers

Just use standard HTML comments:

<!-- This is commented out. --> 
like image 197
Tamás Sengel Avatar answered Sep 18 '22 11:09

Tamás Sengel