Skip to contents

Create an xml document that contains two html_block elements that contain div tags.

Usage

make_div(what, fenced = TRUE)

Arguments

what

the class of block

Value

an xml document with commonmark namespace

Examples

cha <- pegboard:::make_div("challenge")
cha
#> {xml_document}
#> <document xmlns="http://commonmark.org/xml/1.0">
#> [1] <paragraph>\n  <text xml:space="preserve">::::::::::::::::::::::::::::::: ...
#> [2] <paragraph>\n  <text xml:space="preserve">::::::::::::::::::::::::::::::: ...
cat(pegboard:::xml_to_md(cha))
#> :::::::::::::::::::::::::::::::::::::::: challenge
#> 
#> ::::::::::::::::::::::::::::::::::::::::::::::::::