Generate Confluence macro for dynamic Table of Contents
confl_macro_toc(levels)
levels | max number of levels to show |
---|
HTML as string
https://confluence.atlassian.com/doc/table-of-contents-macro-182682099.html
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"