Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github README diff highlight view integrates poorly with indentation #1790

Open
youkaichao opened this issue Mar 7, 2024 · 0 comments
Open

Comments

@youkaichao
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant