Convert markdown text to mindmap text.

mdtxt2mmtxt(title = "my title", mdtxt = "", keep_eq = FALSE)

Arguments

title

character. The title of the output file.

mdtxt

character. The markdown text to convert.

keep_eq

logical. whether to keep LaTeX equations.

Value

a mindmap text.

Examples

mdtxt2mmtxt(mdtxt = c("# Chapter 1", "## Section 1.1", "## Section 1.2"))
#> [1] "<map version=\"1.0.1\">" #> [2] "<node TEXT=\"my title\">" #> [3] "<node TEXT=\"Chapter 1\">" #> [4] "<node TEXT=\"Section 1.1\"></node>" #> [5] "<node TEXT=\"Section 1.2\"></node></node>" #> [6] "</node></map>"