Skip to content

Use quarto just for code execution #12357

Answered by mcanouil
dmca-glasgow asked this question in Q&A
Discussion options

You must be logged in to vote

You could target the intermediate markdown keep-md: true but Quarto does not control what is emitted by code.
So if a code emits HTML, you'll end up with HTML.

Beyond that, you have access to all Markdown variants and extensions from Pandoc.

Note that all code is transformed to Pandoc AST (the schematic representation of a document), so it has to be written back and this uses opinionated writers.

About your new "sidenote", write your own Lua filter to do that or use engine specific features:

---
title: "Untitled"
format:
  commonmark: default
---

```{r}
#| class-output: "my-output"
head(mtcars)
```

Some **markdown** text and an inline equation $y = mx + c$.

But again, there is no garant…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
9 replies
@dmca-glasgow
Comment options

@mcanouil
Comment options

@dmca-glasgow
Comment options

@mcanouil
Comment options

Answer selected by dmca-glasgow
@dmca-glasgow
Comment options

@dmca-glasgow
Comment options

@cderv
Comment options

@dmca-glasgow
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
markdown Related to markdown-like output format
3 participants