Batch-convert Markdown and HTML files.
- Download the newest MarkUP. See Download MarkUP.
- Unzip MarkUP.
In terminal, enter
markupfollowed by these parameters:Parameter Required Description <input>Yes Path to a file or directory containing files to convert. <conversion_type>Yes One of the following conversion modes: md_dita- Converts Markdown to DITA.html_dita- Converts HTML to DITA.md_html- Converts Markdown to HTML.html_md- Converts HTML to Markdown.
-out <output_dir>No Directory for the converted files (defaults to the input directory). If needed, accept any security prompts.
For more information, see Accepting macOS Security Prompts or Accepting Windows Security Prompts.
The following converts every Markdown file to DITA in the Downloads directory.
markup "/Users/user_name/Downloads" md_ditaThe following coverts the README.html file to DITA.
markup "/Users/user_name/Desktop/README.html" html_ditaThe following converts every Markdown file from the Downloads directory to HTML and saves the HTML files to the Destkop directory.
markup "/Users/user_name/Downloads" md_html -out "/Users/user_name/Desktop/"