Markdown conversion cases
Each case below is one HTML construct. The page exists to check how pages are converted to Markdown.
The page has nineteen cases. Each one is a small piece of HTML with a heading that says what it is. A reader that converts the page to Markdown should turn each piece into the plain text form that a person would write by hand: headings with hashes, lists with dashes, links with the full address, and buttons in square brackets.
Images without a description produce nothing, and links that run a script keep their words but lose their target. The cases are independent, so one that fails does not change the others.
Case 1: headings
Heading two
Heading three
Heading four
Heading five
Heading six
Case 2: emphasis
bold and italic and x()
Case 3: code block
a = 1
b = 2Case 4: nested list
- one
- inner
- two
Case 5: ordered start
- third
- fourth
Case 6: table
| Plan | Note |
|---|---|
| Pro | a|b |
Case 7: blockquote
Quoted line
Case 8: rule
Case 9: relative link
PricingCase 10: hash link
TopCase 11: javascript link
Open menuCase 12: empty href
Plain anchorCase 13: icon link
Case 14: image with alt
Case 15: image without alt
Case 16: button
Case 17: line break
line one
line two
Case 18: definition list
- Term
- Meaning
Case 19: details
More
Hidden text