update the docx api_markdown.ftl to generate the tree structure