class

HtmlToMarkdown

Inherits Reference < Object

Constants

IGNORE_KNOWN_TAGS = ["span", "small", "link", "meta", "big", "header", "nav", "label", "input", "html", "body", "article", "main", "aside", "footer", "section", "cite", "noscript"]

List of HTML tags that should be ignored during conversion

IMPLICIT_SELF_CLOSING_TAGS = ["area", "base", "img", "input", "link", "meta", "br", "hr", "embed", "source", "track", "wbr"]

List of HTML tags that are self-closing and don't require a closing tag

INLINE_TEXT_TAGS = ["span", "a", "b", "i", "u", "em", "small", "big", "del", "ins", "sub", "sup", "code", "input", "label"]

List of HTML tags that are considered inline text elements

Constructors

new(io : IO)
Source

Class methods

translate(io : IO) : String

Static method to convert HTML from an IO source to Markdown.

Source

Nested types