Create multi-line markdown text content
md_text.RdHelper function to create readable multi-line markdown text content for pages. Automatically handles line breaks and formatting for better readability.
Examples
if (FALSE) { # \dontrun{
# Method 1: Separate arguments (default: newlines between)
text_content <- md_text(
"# Welcome",
"",
"This is a multi-line text block.",
"",
"## Features",
"- Feature 1",
"- Feature 2"
)
# Method 2: Character vectors
lines <- c("# About", "", "This is about our study.")
text_content <- md_text(lines)
# Method 3: Combine without newlines
combined <- md_text(text1, text2, text3, sep = "")
# Use in add_page
add_page("About", text = text_content)
} # }