tests/testthat/examples/knitr-examples/123-verbatim-engine.md

title: "Test" output: html_document

Default to text highlight

No specific highlight

Markdown output

No specific highlight

No highlight specifically

No specific highlight

Use for verbatim Rmd content

We can output arbitrary content verbatim.

```{r}
1 + 1
```

The content can contain inline code like
`r pi * 5^2`, too.

Other option to set the language

document.getElementById("demo").innerHTML = "Hello JavaScript!";

Setting a language and another class

```{.python .numberLines} print(1 + 1)



```{.python .numberLines}
print(1 + 1)

Content can be read from a file

but no language is set by default from the file name

h1 {
  color: red;
}
h1 {
  color: red;
}

One need to use the embed engine for this

h1 {
  color: red;
}
h1 {
  color: red;
}

or without quotes

h1 {
  color: red;
}


Try the parsermd package in your browser

Any scripts or data that you put into this service are public.

parsermd documentation built on Aug. 21, 2025, 5:27 p.m.