Install
dotnet add package Meziantou.Framework.HtmlToMarkdown.Tool --version 1.0.5
No framework information available.
README
Meziantou.Framework.HtmlToMarkdown.Tool
Meziantou.Framework.HtmlToMarkdown.Tool converts HTML to Markdown using Meziantou.Framework.HtmlToMarkdown.
Install
dotnet tool install --global Meziantou.Framework.HtmlToMarkdown.Tool
Example
Convert a file to another file:
Meziantou.Framework.HtmlToMarkdown.Tool --input page.html --output page.md
Convert a file and write the result to the standard output:
Meziantou.Framework.HtmlToMarkdown.Tool --input page.html
Read the HTML from the standard input:
echo "<h1>Title</h1>" | Meziantou.Framework.HtmlToMarkdown.Tool
Configure the conversion:
Meziantou.Framework.HtmlToMarkdown.Tool --input page.html --heading-style Setext --emphasis-marker Underscore --emoji-shortcode-mode GitHub
Help
Description:
Convert HTML to Markdown using Meziantou.Framework.HtmlToMarkdown
Usage:
Meziantou.Framework.HtmlToMarkdown.Tool [options]
Options:
--input <input> Path to the HTML file to convert. If omitted, reads from stdin
--output <output> Path to the Markdown file to write. If omitted, writes to stdout
--emphasis-marker <Asterisk|Underscore> Marker used for emphasis [default: Asterisk]
--heading-style <Atx|Setext> Style used for headings [default: Atx]
--code-block-style <Fenced|Indented> Style used for code blocks [default: Fenced]
--code-block-fence-character <code-block-fence-character> Fence character used for fenced code blocks [default: `]
--unordered-list-marker <unordered-list-marker> Marker used for unordered lists [default: -]
--thematic-break <thematic-break> Text used for horizontal rules [default: ---]
--line-break-style <Backslash|TrailingSpaces> Style used for line breaks [default: TrailingSpaces]
--simple-punctuation Convert smart punctuation characters to simple ASCII punctuation
--emoji-shortcode-mode <GitHub|None|Unicode> Mode used to convert emoji to shortcodes [default: None]
--unknown-element-handling <PassThrough|Strip|StripKeepContent> Handling of unknown HTML elements [default: PassThrough]
-?, -h, --help Show help and usage information
--version Show version information
Changes from Previous Version
No structural changes between v1.0.4 and v1.0.5.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.