2024-09-02
Markdown doesn’t support comments natively. Use HTML comments instead.
<!-- This is a comment -->
While Markdown is perfect for creating formatted text, it does not have a built-in comment feature. However, you can still add comments by utilizing HTML comment elements.
To add comments in your Markdown file, simply use the HTML comment syntax. Anything written inside <!--
and -->
will be ignored during rendering:
<!-- This comment will not appear in the output -->
You can add comments anywhere in your document without affecting the output content.