-
-
Notifications
You must be signed in to change notification settings - Fork 878
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
[spin] Better support for #|
to split cell in .qmd
#2314
Comments
@cderv I'm confused by this. What is the intended output of the first example? From my understanding of the internals of In the second example, |
Support for .qmd was added in 9f3ffca without modifying how Example in comment once done (#2284 (comment)) was spin(text = c('#| echo: false','1+1'), format = 'qmd', knit = F) It produces the right syntax for a For full support of
Hope it helps understand the meaning of this. I'll probably do it soon, unless someone wants to give it a try |
Ahh, yes! I agree. That Just to be clear, you think the result of your first code block should be: ```{r}
#| echo: false
1+1
```
```{r}
#| eval: false
1+1
``` I can submit a PR for this. I think there's two modifications that should occur:
Does that seem right to you? And would this would only be with BTW, this change would also touch the R VSCode extension, REditorSupport/vscode-R#1455, so I'll have to add a PR there too |
Yes
Yes I think this is better.
Oh good to know ! Thanks for linking to this |
@cderv Fixed in my fork: kylebutts@b8e17d7. What do you think about the approach? It basically inserts a I was thinking of refactoring that part of spin to loop through the lines and mark |
Thanks for giving it a try ! Can you open a PR even as draft ? This makes it more easy to compare and review. @yihui will also be able to jump in and give its thoughts. Thanks! |
I forgot to close this issue when merging #2320. |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
This is producing wrong syntax in .qmd really correct or ideal, considering
#+
does correcty splitThe text was updated successfully, but these errors were encountered: