pandoc_convert_docx_md: Convert a DOCX File to Markdown

View source: R/docx_to_md.R

pandoc_convert_docx_mdR Documentation

Convert a DOCX File to Markdown

Description

Converts a single DOCX file to Markdown format using Pandoc. Optionally, a YAML front matter with a title can be prepended to the output.

Usage

pandoc_convert_docx_md(input, input_wd = ".", output_path, title = NULL, ...)

Arguments

input

A character string specifying the DOCX file path relative to input_wd.

input_wd

A character string specifying the input working directory. Defaults to the current directory (".").

output_path

A character string specifying the output path for the resulting Markdown file.

title

Optionally, a character string specifying the title to be added to the Markdown file. If NULL, no title is added.

...

Additional arguments passed to Pandoc.

Value

Invisible NULL; the function writes the output directly to a file.

See Also

pandoc_convert_multi_docx_md

Examples

# pandoc_convert_docx_md("example.docx", output_path = "example.md", title = "Example Document")

Lightbridge-KS/lbdoc documentation built on May 16, 2024, 3:03 p.m.