-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Support Quarto-style comment blocks #3557
Comments
Seems reasonable. All it would take is to add Line 32 in 9c8464c
I suppose this has to go into the preview style, but that'd make it not that friendly to use / practically unusable since |
I'm actually hesitant to add more exceptions to that list. There's a never-ending list of tools that treat some particular comment specially. Perhaps we should bite the bullet and make this configurable, or tell the tools that they need to change. |
Thanks for the consideration. I've opened a PR in case it's OK to merge; would be a nice quality of life improvement! Cheers. |
Closing in favor of #3668. |
Describe the style change
Presently black inserts a space between the "#" and "|" in Quarto metadata comments like
#| label: cell1
.Examples in the current Black style
Space is inserted between the hash and the pipe:
Desired style
No space between the hash and the pipe, which breaks document metadata parsing:
Additional context
Quarto is the new(ish) replacement for RMarkdown and uses these kinds of comments for metadata in, e.g., Jupyter cells and so black breaks document rendering. It would be nice to keep
#|
together in the same way as a couple of other comment pairs are preserved.The text was updated successfully, but these errors were encountered: