powered by
Filter out the indices of lines between code block fences such as ``` (could be three or four or more backticks).
```
prose_index(x, warn = TRUE)
An integer vector of indices of lines that are prose in Markdown.
A character vector of text in Markdown.
Whether to emit a warning when code fences are not balanced.
library(xfun) prose_index(c("a", "```", "b", "```", "c")) prose_index(c("a", "````", "```r", "1+1", "```", "````", "c"))
Run the code above in your browser using DataLab