lpains.documorph.cli 0.6.0

dotnet tool install --global lpains.documorph.cli --version 0.6.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local lpains.documorph.cli --version 0.6.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=lpains.documorph.cli&version=0.6.0
                    
nuke :add-package lpains.documorph.cli --version 0.6.0
                    

documorph

documorph is a .NET package and command-line tool for converting between document file formats. The current implementation supports .docx to .md, .wiki, .asciidoc files. Additional output formats may be considred in the future.

documorph example

Package

dotnet package install lpains.documorph --prerelease

Getting Started

// Create an instance of a processor class. Options are DocxToMarkdownProcessor, DocxToAsciiDocProcessor, or DocxToWikiProcessor.
// All processors require the .docx file path and a media relative path.
var processor = new DocxToMarkdownProcessor(source.FullName, ".");

// Invoke the Process() method which returns the markdown content and media files.
var (markdown, media) = processor.Process();

CLI

dotnet tool install --global lpains.documorph.cli --prerelease

Getting Started

Upon installation, access the tool by executing documorph in your terminal. For specific command details, refer to the sections below or utilize the CLI help via documorph -h.

documorph md --in <input> --out <output> [--media-location <directory path>] [-?, -h, --help]
documorph asciidoc --in <input> --out <output> [--media-location <directory path>] [-?, -h, --help]
documorph wiki --in <input> --out <output> [--media-location <directory path>] [-?, -h, --help]

Markdown usage example:

documorph md --in .\source.docx --out .\target.md

Output file (target.md):

# Heading 1

1. numbered lists are supported

## Heading 2

- bullet lists too

### Heading 3

> You can create quotes and tables

| Column 1 | Column 2 |
|----------|----------|
| value 1  | value 2  |

#### Heading 4
You can also add links like this: [Link](https://www.example.com)

And images like this:
![Image](./a2666ae9-71c9-4d03-964d-a11895fabcad.png)

And **bold** or *italic* or __underscore__ or ~~striked~~ text.

Commands

md

Converts a .docx to markdown.

asciidoc

Converts a .docx to asciidoc.

wiki

Converts a .docx to MediaWiki.

Parameters

All commands take the same parameters.

--in (required)

The input .docx file or directory. If a folder is provided, all the .docx files will be converted. Any .docx file should be a valid Open XML Word document.

--out (required)

The output file or directory full path.

--media-location

The output directory full path to store the media files in. If this option is not provided, the media files are dropped in the folder where the output files are in.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.6.0 245 11/27/2025
0.5.0 217 11/7/2025
0.4.0 8,156 10/21/2024
0.3.0 187 10/18/2024
0.2.1 157 10/10/2024
0.2.0 177 10/10/2024
0.1.0 169 7/20/2024
0.0.7 180 5/19/2024
0.0.6 199 5/17/2024
0.0.4 214 5/4/2024
0.0.3 174 5/4/2024
0.0.2 177 5/4/2024
0.0.1 145 5/3/2024