Skip to content

Instantly share code, notes, and snippets.

@staltz
Last active December 19, 2023 22:14
Show Gist options
  • 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');
 }
@bigandy
Copy link

bigandy commented Dec 2, 2015

-light
+dark

@fernandoguedes
Copy link

-war
+peace

@p3t3r67x0
Copy link

-mean.js
+sean.js

@reederz
Copy link

reederz commented Dec 3, 2015

-Hello
+Good day!

@jabranr
Copy link

jabranr commented Dec 4, 2015

- Foo
+ Bar

@ReptarAzar
Copy link

- War
+ Peas

@hallaji
Copy link

hallaji commented Dec 10, 2015

- Let's see
+ That sounds great

@arman-hpp
Copy link

- Hate
+ Love

@Aspsine
Copy link

Aspsine commented Dec 14, 2015

- foo
+ bar

@haohcraft
Copy link

+ foo
+ bar

@code0wl
Copy link

code0wl commented Dec 20, 2015

- old skool
+ reactive programming

@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