Skip to contents

Helper function for knit_asis objects, useful when e.g. asis_knit_child() was used in a loop.

Usage

paste.knit_asis(..., sep = "\n\n\n", collapse = "\n\n\n")

Arguments

...

passed to paste()

sep

defaults to two empty lines, passed to paste()

collapse

defaults to two empty lines, passed to paste()

Value

A length-1 character string of class knit_asis (the inputs concatenated).

Details

Works like paste() with both the sep and the collapse argument set to two empty lines

Examples

paste.knit_asis("# Headline 1", "## Headline 2")
#> # Headline 1
#> 
#> 
#> ## Headline 2