mm2md: Convert FreeMind mind map code into Markdown headings

Description Usage Arguments Value Examples

View source: R/individual.R

Description

Convert FreeMind mind map code into Markdown headings

Usage

1
mm2md(from = NA)

Arguments

from

Character. The source text of the (R) Markdown syntax text, the R code, the FreeMind mind map code, or the path to the directory.

Value

Character, showing outline in Markdown syntax.

Examples

1
2
3
4
5
6
7
8
9
input <- system.file("examples/mindr-mm.mm", package = "mindr")
input_txt <- readLines(input, encoding = "UTF-8")
output_txt <- mm2md(input_txt)
output <- tempfile(pattern = "file", tmpdir = tempdir(), fileext = ".md")
writeLines(output_txt, output, useBytes = TRUE)
# file.show(input) # Open the input file file.show(output) # Open the output
# file
message("Input:  ", input, "\nOutput: ", output)
# file.remove(output) # remove the output file

mindr documentation built on Nov. 22, 2021, 9:07 a.m.

Related to mm2md in mindr...