Command reference
editSynopsis
Meziantou.Framework.HtmlToMarkdown.Tool [options]Description
Convert HTML to Markdown using Meziantou.Framework.HtmlToMarkdown
Options
| Option | Description | Default |
|---|---|---|
--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 | Asterisk |
--heading-style <Atx\|Setext> | Style used for headings | Atx |
--code-block-style <Fenced\|Indented> | Style used for code blocks | Fenced |
--code-block-fence-character <code-block-fence-character> | Fence character used for fenced code blocks | ` |
--unordered-list-marker <unordered-list-marker> | Marker used for unordered lists | - |
--thematic-break <thematic-break> | Text used for horizontal rules | --- |
--line-break-style <Backslash\|TrailingSpaces> | Style used for line breaks | TrailingSpaces |
--simple-punctuation | Convert smart punctuation characters to simple ASCII punctuation | |
--emoji-shortcode-mode <GitHub\|None\|Unicode> | Mode used to convert emoji to shortcodes | None |
--unknown-element-handling <PassThrough\|Strip\|StripKeepContent> | Handling of unknown HTML elements | PassThrough |
--subscript-style <Html\|Text\|Tilde\|UnknownElement> | Style used for subscript (sub) elements | UnknownElement |
--superscript-style <Caret\|Html\|Text\|UnknownElement> | Style used for superscript (sup) elements | UnknownElement |
--underline-style <Html\|PlusSigns\|Text\|UnknownElement> | Style used for underline (u) elements | UnknownElement |
--keyboard-style <CodeSpan\|Html\|Text\|UnknownElement> | Style used for keyboard input (kbd) elements | UnknownElement |
--embedded-content-style <Html\|Link\|Remove\|UnknownElement> | Style used for video, audio and iframe elements | UnknownElement |
--ignore-css-white-space | Collapse the whitespace of the text even when a style attribute preserves it | |
--table-span-handling <Duplicate\|EmptyCells\|Ignore> | Handling of the colspan and rowspan attributes of table cells | Ignore |
--complex-table-handling <Flatten\|Html> | Handling of the tables that a pipe table cannot represent | Flatten |
-?, -h, --help | Show help and usage information | |
--version | Show version information |