Skip to content

Instantly share code, notes, and snippets.

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

-text-transform: uppercase;
+TEXT-TRANSFORM: UPPERCASE;

@struCoder
Copy link

interesting

@beardyco
Copy link

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

@4ft35t
Copy link

4ft35t commented Nov 30, 2015

-print 123
+print(123)

@BigKuCha
Copy link

-hello :cop:
+hello world :smile:

@dcb9
Copy link

dcb9 commented Nov 30, 2015

- Elephant
+ PHP

@leecade
Copy link

leecade commented Nov 30, 2015

- before
+ after

@smoothdvd
Copy link

- bad
+ good

@herecydev
Copy link

- boring
+ awesome

@stereokai
Copy link

Intertesting

- meh
+ woot

@augustoproiete
Copy link

-this is kind of cool
+this is awesome!!!!!

@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