-
DescriptionI have searched without success for a method to include arbitrary text in a Quarto document such that it is guaranteed not to be processed in any way. This text may, for example, include chunk headers set off with 3 backticks, triple colon divs, R code, etc. The text should not have to have any special characters escaped. This is the closest I've come but it's not elegant. I've tried setting off the block of text with 4 backticks but have not always been successful with that. Any ideas welcomed. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
Do you have an example of input/output? |
Beta Was this translation helpful? Give feedback.
-
|
Yes using R but happy to use any Quarto syntax. Here is an example that almost worked but see the problem with unwanted expansion of commands in a .dot file. My solution is below but it's not elegant. |
Beta Was this translation helpful? Give feedback.
Is there a reason you are using
```{dot}which means evaluate the code rather than```dot?Knitr/Quarto will see the dot code cell and try to evaluate it if possible.
If you need the brackets to appear but don't want the code cell to be evaluated, use the double brackets escaping syntax:
```{{dot}}.You should not use R inline syntax which is knitr specific. the recommended approach is YAML, meaning nothing but the language should be between the brackets.
Should be