Command reference

edit

Synopsis

Meziantou.Framework.HtmlToMarkdown.Tool [options]

Description

Convert HTML to Markdown using Meziantou.Framework.HtmlToMarkdown

Options

OptionDescriptionDefault
--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 emphasisAsterisk
--heading-style <Atx\|Setext>Style used for headingsAtx
--code-block-style <Fenced\|Indented>Style used for code blocksFenced
--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 breaksTrailingSpaces
--simple-punctuationConvert smart punctuation characters to simple ASCII punctuation
--emoji-shortcode-mode <GitHub\|None\|Unicode>Mode used to convert emoji to shortcodesNone
--unknown-element-handling <PassThrough\|Strip\|StripKeepContent>Handling of unknown HTML elementsPassThrough
--subscript-style <Html\|Text\|Tilde\|UnknownElement>Style used for subscript (sub) elementsUnknownElement
--superscript-style <Caret\|Html\|Text\|UnknownElement>Style used for superscript (sup) elementsUnknownElement
--underline-style <Html\|PlusSigns\|Text\|UnknownElement>Style used for underline (u) elementsUnknownElement
--keyboard-style <CodeSpan\|Html\|Text\|UnknownElement>Style used for keyboard input (kbd) elementsUnknownElement
--embedded-content-style <Html\|Link\|Remove\|UnknownElement>Style used for video, audio and iframe elementsUnknownElement
--ignore-css-white-spaceCollapse 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 cellsIgnore
--complex-table-handling <Flatten\|Html>Handling of the tables that a pipe table cannot representFlatten
-?, -h, --helpShow help and usage information
--versionShow version information