Skip to contents

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

Usage

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

Arguments

...

passed to base::paste()

sep

defaults to two empty lines, passed to base::paste()

collapse

defaults to two empty lines, passed to base::paste()

Value

Returns text with the class "knit_asis"

Details

Works like base::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