2024/11/25

Markdown - syntax - comments

 "[//]: # ()  
 

что это ?"

"This is a Markdown comment syntax that creates an empty/hidden comment. It's one way to add comments in Markdown that won't be visible in the rendered output.

Here are the common ways to write comments in Markdown:

```markdown:/example/comments.md
[//]: # (This is a comment)
[//]: # ""This is also a comment""
[comment]: # (Another way to comment)
```

These comments are useful for:
- Adding notes to yourself or other contributors
- Temporarily hiding content
- Including metadata that shouldn't be visible in the final rendered document
- Leaving reminders or TODOs in the source

The syntax breaks down as:
- `[//]:` creates a reference-style link that points nowhere
- `#` is used as a placeholder URL
- The text in parentheses is the comment content

The comment will be completely invisible when the Markdown is rendered to HTML or other formats."

Популярные сообщения

↑UP↑ ↑UP↑