block <- R6::R6Class("Block", class = FALSE,
private = list(
patterns = c(),
token_names = c(),
augment = function(tokens) { tokens }
),
public = list(
probe = function(lines) {
tokens <- lines %>%
multiline$match(private$patterns, private$token_names) %>%
purrr::when(purrr::is_empty(.) ~ ., ~ private$augment(.))
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.