Issue with #| being automatically changed to #/ in RStudio label

Hi everyone,

I’m working on a .qmd file in RStudio, but I’m encountering an issue where every time I write #| for Quarto metadata, it automatically gets changed to #/. I’ve checked the editor settings (auto-indent, comment continuation, etc.), but none of the changes seem to help.

Does anyone know how to prevent this automatic conversion or have suggestions on how to handle it?

Thanks in advance for your help!

Could you check that it is not your editor's font displaying #| in italics?

Try changing the editor theme to other designs.

For example, this is merbivore which applies an italic style
image

and this is Ambiance which does not use an italic style
image

1 Like

Thank you so much. It really works.