markup icon indicating copy to clipboard operation
markup copied to clipboard

Github README diff highlight view integrates poorly with indentation

Open youkaichao opened this issue 1 year ago • 0 comments

Currently, the highlight syntax for diff view is + and -. However, the problem is that they make the content indented by one more space, which would mess up original indentation.

If I have 3 lines with two space indentation:

  a
  b
  c

And when I want to highlight that b is added & c is removed:

 a
+  b
-  c

It seems b and c have one more level of indentation of a.

Is it possible to render +/- outside of the box so that + b still has the same indentation as a?

Currently I have to add two spaces for each line, which makes "copy code" invalid due to excessive spacing.

youkaichao avatar Mar 07 '24 07:03 youkaichao