Support Quarto-style comment blocks #3557
Labels
F: comments
The syntactic kind. Not in the language grammar, always on our minds. Best bugs.
S: accepted
The changes in this design / enhancement issue have been accepted and can be implemented
T: style
What do we want Blackened code to look like?
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: