-2

I want to include comments (aka code comments) to my markdown.

Something like this

// I want this line to not render in the html

I've tried the different approaches that javascript uses but they all render as normal text and show in the final markup.

What's the nicest way I could achieve comment like functionality?

Evolve
  • 8,939
  • 12
  • 51
  • 63
  • 3
    See http://stackoverflow.com/questions/4823468/store-comments-in-markdown-syntax – ryutamaki May 02 '14 at 07:28
  • I am not a web developer but I always thought in html WYSIWYG. You don't compile your html code so you can't make comments disappear. –  May 02 '14 at 08:33

1 Answers1

2

< !-- *comment* --/> should work

Explanation: Because markdown partially supports HTML.

Its syntax is very small, corresponding only to a very small subset of HTML tags1.

Jess
  • 124
  • 1
  • 3
  • 6
user2956947
  • 239
  • 1
  • 2
  • 12