Element mapping
The converter works from element meaning rather than the browser's painted appearance. Paragraph, heading, emphasis, strong emphasis, link, blockquote, code, and list elements are mapped to their Markdown counterparts, with blank lines and indentation used to preserve block boundaries and nesting. Text content remains text; HTML-only attributes generally have nowhere to go in Markdown.