Skip to content

Instantly share code, notes, and snippets.

@jonikarppinen
Last active April 12, 2026 18:03
Show Gist options
  • Select an option

  • Save jonikarppinen/47dc8c1d7ab7e911f4c9 to your computer and use it in GitHub Desktop.

Select an option

Save jonikarppinen/47dc8c1d7ab7e911f4c9 to your computer and use it in GitHub Desktop.
How to comment out stuff in Markdown on GitHub?

Comments in GitHub flavour of Markdown

As answers to this Stack Overflow question reveal, using <!--- and ---> or <!-- and --> works (view source by clicking "Raw"):

Inline comments

How about commenting out <!--- just ---> a part of one line?

If you know of a way, please show me how by cloning this Gist, or commenting below!

Update 2019

As several commenters pointed out, for inline commenting <!-- a normal html comment --> now works.

You can't see this:

Btw, wow, I created this gist in 2014 and only now became aware of the discussion and that it's the top Google hit for markdown comments github. 👍

@Big-jpg
Copy link
Copy Markdown

Big-jpg commented Jun 25, 2025

It is still the #1 result on Google in June 2025, turns out simple and accurate information is what people want. huh, who knew!

@hindiworkindia-cpu
Copy link
Copy Markdown

The Samagra ID Download service provided by Government of Madhya Pradesh ensures secure access to identity details. It helps users keep a digital record for easy use in government schemes and services.

@hindiworkindia-cpu
Copy link
Copy Markdown

With Aadhaar Download, users can easily keep a soft copy of their identity card on their mobile or computer. This helps in situations where carrying a physical Aadhaar card is not possible or convenient.

@hindiworkindia-cpu
Copy link
Copy Markdown

Samagra Portal is a very useful online platform that helps citizens access government schemes and services easily. It provides a centralized database for family and individual records, ensuring transparency, efficiency, and proper distribution of benefits to eligible beneficiaries across the state.

@hindiworkindia-cpu
Copy link
Copy Markdown

Online land services are becoming very important for property verification. Platforms like MP Bhulekh, Bhulekh MP, MP Land Record, webgis mp help users access ownership details easily, reducing fraud risks and making the entire process more transparent and user-friendly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment