2016-05-21 13 views
5

Próbuję utworzyć istotę za pomocą wstawionego komentarza. Przeczytałem rozwiązanie here, które działa w celu umieszczenia komentarza na jego własnej linii (jak pokazano na obrazku); nie wydaje się jednak działać dla komentarzy wbudowanych. Czy istnieje sposób na umieszczenie komentarzy w komentarzach w smaku github? enter image description hereJak dodać komentarze w wierszu 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

[Ta odpowiedź] (http://stackoverflow.com/a/29724376/274466) na pytanie powiązałeś oferty w pewien sposób ... – ig0774

Odpowiedz

6

uważniej przyjrzeć this solution możliwe obejście inline komentarze:

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

Można też po prostu zrobić to

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

Pamiętaj, Przecena jest tylko easi er sposób pisania treści HTML. (nota potrójną myślnik)

  • jakiś artykuł
  • coś z komentarzem inline
+0

Czy to działa w przypadku wielowierszowych komentarzy? –

+0

Yep @Steven Vascellaro –

Powiązane problemy