Generate Confluence macro for dynamic Table of Contents

confl_macro_toc(levels)

Arguments

levels

max number of levels to show

Value

HTML as string

References

https://confluence.atlassian.com/doc/table-of-contents-macro-182682099.html

Examples

confl_macro_toc(2)
#> [1] "\n```{=html}\n<ac:structured-macro ac:name=\"toc\"><ac:parameter ac:name=\"levels\">2</ac:parameter></ac:structured-macro>\n```\n"