We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bit of an odd case that I just ran into. A chunk with an empty set of braces
```{} # example code ```
is parsed as a plain code block by pandoc/rmarkdown
text <- c( "```{}", "# example code", "```" ) withr::with_tempfile("tf", { writeLines(knitr::knit(text = text), tf) rmarkdown::pandoc_convert(tf, from = "markdown", to = "html") }) #> <pre><code># example code</code></pre>
but is flagged as invalid syntax by parse_rmd().
parse_rmd()
parsermd::parse_rmd(text) #> Error: Failed to parse line 1, expected chunk engine #> ```{} #> ~~~~^
The text was updated successfully, but these errors were encountered:
I think there should be an approach that handles this and #27 using a look ahead - I'll play around with it and see what I can get working
Sorry, something went wrong.
No branches or pull requests
Bit of an odd case that I just ran into. A chunk with an empty set of braces
is parsed as a plain code block by pandoc/rmarkdown
but is flagged as invalid syntax by
parse_rmd()
.The text was updated successfully, but these errors were encountered: