Examples for 'xfun::prose_index'


Find the indices of lines in Markdown that are prose (not code blocks)

Aliases: prose_index

Keywords:

### ** Examples

library(xfun)
prose_index(c("a", "```", "b", "```", "c"))
[1] 1 5
prose_index(c("a", "````", "```r", "1+1", "```", "````", "c"))
[1] 1 7

[Package xfun version 0.49 Index]