powered by
This is a convenience function for testing and development.
pandoc_ast(file, from = NULL, tolist = TRUE)
the file to convert using pandoc.
the format to convert from. If NULL (default) File type will be auto-detected by extension. .Rmd files will be treated as .md.
NULL
.Rmd
.md
whether to return the AST as an R list. If FALSE, will return length-1 character vector of raw JSON.
FALSE
A list containing the structured document
# NOT RUN { ast <- pandoc_ast(redoc_example_docx()) # }
Run the code above in your browser using DataLab