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

[knitr] asis_output() has not the same effect as output: asis #9185

Open
cderv opened this issue Mar 25, 2024 · 0 comments
Open

[knitr] asis_output() has not the same effect as output: asis #9185

cderv opened this issue Mar 25, 2024 · 0 comments
Assignees
Labels
bug Something isn't working knitr
Milestone

Comments

@cderv
Copy link
Collaborator

cderv commented Mar 25, 2024

---
title: "Test"
format: 
  typst:
    keep-typ: true
    keep-md: true
---

```{r}
knitr::asis_output("`#set page(flipped: true)`{=typst}")
```

This will lead to the intermediate markdown

---
title: "Test"
format: 
  typst:
    keep-typ: true
    keep-md: true
---


::: {.cell}

```{.r .cell-code}
knitr::asis_output("`#set page(flipped: true)`{=typst}")
```

::: {.cell-output-display}
`#set page(flipped: true)`{=typst}
:::
:::

No output div are removed - nor :::{.cell} or the .cell-output-display one.

Using #| output: asis does removed it.

I do think this is a knitr* issue because options$results = "asis" is only set for LaTeX output.

This is related to #9184 as even if this is fixed in knitr, #9184 will remain.

@cderv cderv self-assigned this Mar 25, 2024
@cderv cderv added the knitr label Mar 25, 2024
@mcanouil mcanouil added the bug Something isn't working label Apr 11, 2024
@cscheid cscheid added this to the Future milestone Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working knitr
Projects
None yet
Development

No branches or pull requests

3 participants