# Markdown conversion cases

> Each case below is one HTML construct. The page exists to check how pages are converted to Markdown.

Source: https://stacklyhq.xyz/docs/markdown-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 = 2
```

## Case 4: nested list

- one
- inner

two

## Case 5: ordered start

3. third
4. fourth

## Case 6: table

| Plan | Note |
| --- | --- |
| Pro | a\|b |

## Case 7: blockquote

> Quoted line

## Case 8: rule

---

## Case 9: relative link

[Pricing](https://stacklyhq.xyz/pricing)

## Case 10: hash link

[Top](https://stacklyhq.xyz/docs/markdown-cases#case-1)

## Case 11: javascript link

Open menu

## Case 12: empty href

Plain anchor

## Case 13: icon link

[Open docs](https://stacklyhq.xyz/docs)

## Case 14: image with alt

![Board with four columns](https://stacklyhq.xyz/assets/board.svg)

## Case 15: image without alt

## Case 16: button

[Button: Save draft]

## Case 17: line break

line one
line two

## Case 18: definition list

Term

Meaning

## Case 19: details

More

Hidden text
