lpains.documorph.cli
0.0.6
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global lpains.documorph.cli --version 0.0.6
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.0.6
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=lpains.documorph.cli&version=0.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package lpains.documorph.cli --version 0.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
documorph
documorph
is a .NET package and command-line tool for converting between document file formats. The initial implementation supports only .docx
to .md
files, but other formats will be considered for the future.
Package
dotnet package install lpains.documorph --prerelease
Getting Started
// Create an instance of the DocxToMarkdownProcessor class. This class requires the .docx file 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 <inputFile> --out <outputFile> [-?, -h, --help]
Basic usage example:
documorph --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](image1.png)
And **bold** or *italic* or __underscore__ or ~~striked~~ text.
Parameters
--in
(required)
The input .docx
file. It should be a valid Open XML Word document.
--out
(required)
The output file name. The media files will be dropped in the folder where the output file is in.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.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.