Skip to content

Instantly share code, notes, and snippets.

@staltz
Last active December 19, 2023 22:14
Show Gist options
  • Star 56 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save staltz/728a18877948f059d570 to your computer and use it in GitHub Desktop.
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');
 }
@oyeharry
Copy link

- boom
+ whoa

@learningjs
Copy link

-foo
+bar

@Dauch
Copy link

Dauch commented Jan 20, 2016

- foo
+ bar

@csgui
Copy link

csgui commented Jan 22, 2016

- Callbacks
+ Observables

@ivanchuk
Copy link

ivanchuk commented Feb 1, 2016

- words
+ facts

@nayzawoo
Copy link

- old
+ new

@basecss
Copy link

basecss commented Feb 23, 2017

- old
+ new

@yangnianbing
Copy link

- meh
+ woot

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