How can I highlight deleted and added lines like in this comment? How do I make it look like a git diff?
Do I have to use HTML? Or is there some tricky syntax like strikethrough?
Web Applications Stack Exchange is a question and answer site for power users of web applications. It only takes a minute to sign up.Sign up to join this community
That is done by using a code block with the "diff" syntax. The raw markdown would look something like this:
One small step for ```diff -man +humankind ```
I've made a gist also that demonstrates the code (click "Raw" to view the markdown).