Published: 2021.05.04
Category: PowerShell
Convert Documents
Module allows to convert document from Docx and MD format into html or markdown format.
Module uses Pandoc application to perform conversion. It contains zipped version of the Pandoc and first step before running the script is to validate if archive is extracted.

Methods
- ConvertFrom-Docx – allows to convert documents to Html and Markdown
- ConvertFrom-Markdown – allows to convert documents to Html and Docx
Parameters
- Path – path to source document (Docx or Markdown)
- TargetFormat – target format of the document Html, Docx or Markdown
- OutputDirectory – directory where output file will be placed
- OutputFileName – name of the output file
- ExtractImages – if used images will be extracted from the document to files
ConvertFrom-Markdown -Verbose -Path "README.md" -TargetFormat Html -OutputDirectory D:\Trash\ArticlesHTML\MD
