lpains.documorph 0.2.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package lpains.documorph --version 0.2.1                
NuGet\Install-Package lpains.documorph -Version 0.2.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="lpains.documorph" Version="0.2.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add lpains.documorph --version 0.2.1                
#r "nuget: lpains.documorph, 0.2.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install lpains.documorph as a Cake Addin
#addin nuget:?package=lpains.documorph&version=0.2.1

// Install lpains.documorph as a Cake Tool
#tool nuget:?package=lpains.documorph&version=0.2.1                

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.

documorph example

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 <input> --out <output> [--media-directory <directory path>] [-?, -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](./a2666ae9-71c9-4d03-964d-a11895fabcad.png)

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

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 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.4.0 90 10/21/2024
0.3.0 110 10/18/2024
0.2.1 85 10/10/2024
0.2.0 82 10/10/2024
0.1.0 118 7/20/2024
0.0.7 115 5/19/2024
0.0.6 118 5/17/2024
0.0.4 117 5/4/2024
0.0.3 106 5/4/2024
0.0.2 104 5/4/2024
0.0.1 69 5/3/2024