-
Notifications
You must be signed in to change notification settings - Fork 394
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
docs: wrong use of diff
highlighting + indentation problem
#1761
Comments
I think we should indeed review all |
This comment has been minimized.
This comment has been minimized.
UPDATE: So, as pointed out by @efiop in https://github.com/iterative/dvc.org/pull/1760/files#r487469021, our current So we can use |
I checked this out a little on my own when it popped up, and if I were to guess it seems to be an interaction between the indented Markdown list and however the code block is passed to Prism. Here's all the existing
The table that was pointed out in |
Thanks for the list, we should look at all of those. And as an update to my previous message:
Actually we (and |
Another UPDATE:
Unfortunately, using a single space like
|
What if we changed the way we think about these listing? The core problem seems to be broken formatting in dirtree diff output, which is sort of an artificial concept. Maybe we could look at this less as a 'look under the hood' and more of a 'verify your progress' and provide (sometimes abridged) outputs of reproducible commands:
I think this would solve the formatting problem because it doesn't really matter in an actual diff context and as a bonus the sections would be more clear and useful (IMO). Saying 'what happens under the hood' sort of implies internal processes of DVC whereas looking at it from this angle implies more looking at and verifying the output of the processes. Maybe this is a bit radical, and probably would be a separate issue, but it would close this issue I think. |
Hmmm sounds like much more effort than addressing this very specific formatting issue. And
The output of Thanks for the ideas though. |
diff
highlighting + indentation problem
UPDATE: Jump to #1761 (comment)
I have opened an issue #1760 to fix the only important example, but I wonder if the rest of the 'diff' formatted code blocks might benefit from this? This PR is the only one that really sticks out but it is also slightly noticeably elsewhere. If there was positive feedback on this I would be happy to find other cases of this.
The text was updated successfully, but these errors were encountered: