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

Auto-formatting of quarto file #22

Closed
FabienSe opened this issue Oct 12, 2022 · 3 comments
Closed

Auto-formatting of quarto file #22

FabienSe opened this issue Oct 12, 2022 · 3 comments
Labels

Comments

@FabienSe
Copy link

Hello !

Quarto files are a type of markdown file but still are not detected as a markdown file by Vscode.
Thus it is impossible to use classic formatter to format quarto file.
The more annoying thing is to manually format table.

It is possible to add it to this extension ? Or make it possible to use quarto file with other extension which format markdown file ?

I tired to manually change the association of the file extension(.qmd) to markdown in the vscode settings but I am losing all the benefices of this extension.

Thanks a lot for your help

@jjallaire
Copy link
Contributor

Many markdown extensions assume they are dealing with plain markdown or gfm based markdown so they end up behaving unexpectedly with Quarto's more sophisticated markdown dialect. We've therefore found it safer to not automatically bind to the markdown extensions in the wild but rather have them opt-in by explicitly targeting the quarto language id. So the best thing you can do is post issues or provide PRs to extensions that you want to have work w/ Quarto.

@jjallaire jjallaire transferred this issue from quarto-dev/quarto-vscode Dec 15, 2022
@boxydog
Copy link

boxydog commented Jul 22, 2024

I still have this issue.

Can you point to a tool that auto-formats the markdown in a Quarto file?

It seems unfortunate to close this issue if there's not even one.

@boxydog
Copy link

boxydog commented Jul 22, 2024

Just to point out my real desire: a pre-commit filter that auto-formats, so our team can agree on a format and stick to it. I might open an issue on this instead of commenting on a closed one.

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

No branches or pull requests

3 participants