docs.page icon indicating copy to clipboard operation
docs.page copied to clipboard

Add diff code support

Open nank1ro opened this issue 2 years ago • 3 comments

Would be nice to have diff code support like this:

void main() {
-  print("before");
+  print("after");
}

nank1ro avatar Jan 22 '23 15:01 nank1ro

This would be helpful for migration guides. From what I understood, GitHub markdown supports it but without being able to set both the language highlighting AND the diff highlighting. Having both would be very nice 🔥

apalala-dev avatar May 02 '23 09:05 apalala-dev

Hmm this should theoretically be supported already, since we use Shiki. Let me have a look.

Ehesp avatar May 02 '23 11:05 Ehesp

Hmm this should theoretically be supported already, since we use Shiki. Let me have a look.

Do you have any updates on this? Still not working on our end

nank1ro avatar Jun 13 '23 10:06 nank1ro