mbigras mbigras - 2 months ago 15
Markdown Question

How do I add inline comments in Github Flavored Markdown?

I'm trying to create a gist with an inline comment. I read a solution here which works for putting a comment on it's own line (as shown in the image); however, it doesn't appear to work for inline comments. Is there any way to get inline comments in github flavored markdown?
enter image description here

- [x] some item
- [ ] another item with meta info [//]: # (attempt at meta info as inline comment)


[//]: # (This may be the most platform independent comment)
[//]: # (http://stackoverflow.com/questions/4823468/comments-in-markdown)

Answer

looking more closely at this solution a possible workaround for inline comments:

- [x] some item
- [ ] another item with meta info [//]: # (attempt at meta info as inline comment)
- [ ] using @ig0774's recomendation [](with an inline comment hidden inside an empty link)

[//]: # (This may be the most platform independent comment)
[//]: # (http://stackoverflow.com/questions/4823468/comments-in-markdown)
[](and another comment down here too using the empty link method)

enter image description here