-
Notifications
You must be signed in to change notification settings - Fork 71
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
Style Quarto documents (.qmds) #913
Comments
It seems to me as |
it looks like there's likely to be some divergence, now or in the future:
|
@JohannesNE are you interested in contributing this feature? It seems quite similar to your work in #824. @MichaelChirico I think the specs might change in the future, but I think it's unlikely that something as fundamental as how code fences are declared will change. These are stable things since the introduction of R Markdown and are also recognized by Jupyter (which quarto relies on also) |
@lorenzwalthert Yes, that is correct! |
Thank you for reaching out. Unfortunately I am a bit too hung up on other
projects at the moment.
|
Ok @JohannesNE, I appreciate the quick response. |
@MichaelChirico or @mine-cetinkaya-rundel, if you are interested to contribute that feature, I'd be more than happy to provide guidance and code review. The git diff from #824 should be very helpful in implementing that feature, it's essentially the same. |
@mine-cetinkaya-rundel you want to try out |
@lorenzwalthert Just tried this on a The error about not being able to style this type of file isn't there, but the style is not being corrected. This is the document I'm trying it on:
|
The Addin has not worked (with the file error), so I pushed 68e846d to fix this. However, I can't reproduce your problem. Can you provide more context of how you run {styler}. Also, RStudio sometimes requires re-opening the file I figured to see changes made by other processes. |
@lorenzwalthert This works now, thank you! |
Now that Quarto has hit prime time, time to cut a release? |
Releases are generally a bit of work. You have voiced in several places that that you'd want one, which I understand, but there is no release planned in the next few weeks, maybe not months. You can already use that functionality now, also with pre-commit. If you want to contribute to {styler}, I suggest you contribute an easy issue like lorenzwalthert/precommit#437. Interested? |
Currently, running the "Style active file" addin (
styler:::style_active_file()
) on a Quarto document (.qmd
) gives the errorCan only style .R, .Rmd and .Rnw files.
. This is a feature request to extend styler functionality to Quarto documents. Thank you!The text was updated successfully, but these errors were encountered: