2016-05-21 28 views
5

Sto provando a creare un gist con un commento incorporato. Ho letto una soluzione here che funziona per mettere un commento sulla propria linea (come mostrato nell'immagine); tuttavia, non sembra funzionare per i commenti in linea. C'è un modo per ottenere commenti in linea in markdown aromatizzato con github? enter image description hereCome aggiungere commenti in linea in Github Flavored Markdown?

- [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

[Questa risposta] (http://stackoverflow.com/a/29724376/274466) alla domanda hai collegato offre un modo ... – ig0774

risposta

6

guardare più da vicino this solution una possibile soluzione per commenti in linea:

- [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

2

È anche possibile fare questo

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

Ricordate, Markdown è solo un easi modo di scrivere contenuti HTML. (notare il trattino tripla)

  • qualche elemento
  • Qualcosa con un commento in linea
+0

Questo funzionerebbe per commenti multilineati? –

+0

Yep @Steven Vascellaro –

Problemi correlati