I noticed that comments do not support formatting and line breaks like we have in posts.

The markdown help doesn't seem to apply to the comments, so I think it is a bug.


Comments have no line breaks and generally no block-level formatting (such as extended blocks of code).

You can, however, use some of the same formatting that applies to normal posts:

  • Italics *Italics* Also _Also_
  • Bold **Bold** Also __Also__
  • *Bold italics are not allowed* ***Bold italics are not allowed***
  • Code `Code`
  • links [links](https://meta.stackoverflow.com/ "Meta")

For a more complete explanation, you can see the relevant part of the FAQ.

  • Note to add: The comment syntax is superficially similar to the one used in posts but differs in a number of headachy ways. You can hope never to encounter those cases, though :-) – Joey May 19 '10 at 9:47
  • 5
    Its sad whe cannot have even line breaks in comments :S – VSP May 19 '10 at 9:52
  • @Johannes Rössel: Wow, same thing happened to me: meta.stackexchange.com/questions/50447 – Konrad Rudolph May 19 '10 at 9:54
  • 17
    @ase69s, _____________________________________________________________________________________________ Yeah, _____________________________________________________________________________________________ You _____________________________________________________________________________________________ cannot _____________________________________________________________________________________________ have _____________________________________________________________________________________________ it, unless you overflow it :) – YOU May 19 '10 at 10:47
  • 4
    @S.Mark: ̶T̶h̶a̶t̶s ̶g̶r̶e̶a̶t ;-) – Andy E May 19 '10 at 13:14
  • 6
    And I would hate to read comments if they all looked like that!!!! – The Unhandled Exception May 19 '10 at 13:16
  • 2
    @SMark stop breaking comments! Damn kinds with your fancy overflows!! – alex May 19 '10 at 14:15
  • is this really ............................................................................................. the              only _____________________________________________________________________________________________ way? – n611x007 Apr 22 '15 at 11:03

(Don't forget inline links!)

We do allow very limited markdown in comments now:

  • * and _ for bold, italic
  • `` for code blocks
  • [example](http://example.com "merely an example")

No HTML, just Markdown in comments, please!

Allow HTML tags in comments

  • 2
    sorry but why not line-breaks? via double space? – n611x007 Apr 22 '15 at 11:12

Some of the formatting works in comments. Notably inline links, *emphasis*, **strong emphasis** and `code`.

This is all I could find in reference: a blog post about the changes.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .