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

Switch to parsing with {parsermd} instead of regex #17

Open
coatless opened this issue May 12, 2021 · 1 comment
Open

Switch to parsing with {parsermd} instead of regex #17

coatless opened this issue May 12, 2021 · 1 comment

Comments

@coatless
Copy link
Collaborator

coatless commented May 12, 2021

Promising new entrant that more intelligent reads through the structure of an RMarkdown/Markdown document.

c.f. rundel/parsermd#17

@coatless
Copy link
Collaborator Author

coatless commented Jan 7, 2022

Suggest changing over to new Knitr engine features in v1.37:

https://yihui.org/en/2022/01/knitr-news/

verbatim and embed look the most promising.

````{verbatim}
We can output arbitrary content verbatim.

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

The content can contain inline code like
`r pi * 5^2`, too.
````
```{embed, file="foo.R"}
```

Only issue is the new way of specifying code chunk options introduced in v1.35

R style:

```{r}
#| echo = FALSE,
#| fig.width = 10
```

YAML style:

```{r}
#| echo: false
#| fig.width: 10
```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant