Skip to content

Instantly share code, notes, and snippets.

@randallreedjr
Last active February 4, 2024 17:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save randallreedjr/9dceb795ee0da848ea56f73f663b07db to your computer and use it in GitHub Desktop.
Save randallreedjr/9dceb795ee0da848ea56f73f663b07db to your computer and use it in GitHub Desktop.
How to add comments to Markdown

There are comments here but you can't see them

Below this ↓


And above this ↑

Check out the "raw" file if you don't believe me!

Here's a codeblock to see what the comment syntax looks like

[//]: # (This syntax works like a comment, and won't appear in any output.)
[//]: # (It’s a little bizarre, but it works with MacDown and Pandoc.)

Source: https://alvinalexander.com/technology/markdown-comments-syntax-not-in-generated-output

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