23

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)
[//]: # (https://stackoverflow.com/questions/4823468/comments-in-markdown)
1
  • 1
    This answer to the question you linked offers a way... Commented May 21, 2016 at 15:49

3 Answers 3

41

You can also just do this

<!--- Comments are Fun --->

Remember, markdown is just an easier way to write HTML content. (note the triple dash)

  • some item
  • Something with an inline comment
Sign up to request clarification or add additional context in comments.

Comments

7

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)
[//]: # (https://stackoverflow.com/questions/4823468/comments-in-markdown)
[](and another comment down here too using the empty link method)

enter image description here

Comments

0

I fell over this thing <?put anything &%#$ here ?>, it seems like a rather robust comment.

It seems to work for stackoverflow as well :-)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.