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)
A character vector of text in Markdown.
Whether to emit a warning when code fences are not balanced.
An integer vector of indices of lines that are prose in Markdown.
# NOT RUN { 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