syntax for comments in github's README.md?

14,855

Huh. As a quick experiment I just tried <!-- ... -->, and it worked. Here's the example.

Share:
14,855

Related videos on Youtube

Camille Goudeseune
Author by

Camille Goudeseune

Programmer, researcher, and church organist.

Updated on September 18, 2022

Comments

  • Camille Goudeseune
    Camille Goudeseune over 1 year

    A GitHub repo is described in a text file README.md, in Daring Fireball's Markdown format. Does that language support comments, either as a feature or a quick hack? I'd like to have some text that is visible when editing the file, but invisible in the HTML result. (Just like HTML's <!-- ... -->, or bash's # ....)

    Their extensive example doesn't seem to mention this. Their mailing list archive isn't directly searchable, but even indirectly I find only vaguely related posts.

  • Camille Goudeseune
    Camille Goudeseune almost 7 years
    Much more detail, specialized to particular programming languages, is at stackoverflow.com/questions/4823468/comments-in-markdown.