Skip to content

Instantly share code, notes, and snippets.

@staltz
Last active October 20, 2026 10:09
Show Gist options
  • Select an option

  • Save staltz/728a18877948f059d570 to your computer and use it in GitHub Desktop.

Select an option

Save staltz/728a18877948f059d570 to your computer and use it in GitHub Desktop.
How to show migration guides in GitHub Markdown

How to show migration guides in GitHub Markdown

Use the diff code highlighting tag.

  ```diff
  - foo
  + bar

Example:

-function () {
+function greet() {
   console.log('Hello world');
 }
@nayzawoo

Copy link
Copy Markdown
- old
+ new

@basecss

basecss commented Feb 23, 2017

Copy link
Copy Markdown
- old
+ new

@yangnianbing

Copy link
Copy Markdown
- meh
+ woot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment