# StackDraft compatibility suite

This fixture exercises portable Markdown, converted assets, proactive publishing warnings, and destination-review cases.

## Preserved formatting

### Emphasis, links, and inline code

Use **bold** for a label, *italic* for light emphasis, ~~remove stale text~~, and open the [StackDraft guides](https://www.stackdraft.app/guides). Run `npm run build` before publishing.

### Lists

1. Draft in Markdown
2. Prepare in StackDraft
3. Verify in Substack

- Headings
- Links
- Code

### Blockquote

> A publishing handoff is only complete after the destination preview passes.

---

### Fenced code

```ts
export function canonicalUrl(pathname: string) {
  return new URL(pathname, "https://www.stackdraft.app").toString()
}
```

## Converted assets

### Compact table

| Plan | Price | Best for |
| --- | ---: | --- |
| Free | $0 | New readers |
| Monthly | $8 | Regular readers |

### Mermaid diagram

```mermaid
flowchart LR
  Draft[Markdown draft] --> Check[Publishing checks]
  Check --> Copy[Rich-text copy]
  Copy --> Post[Substack post]
```

## Intentional warnings

### Wide table

| One | Two | Three | Four | Five | Six |
| --- | --- | --- | --- | --- | --- |
| A | B | C | D | E | F |

### Image checks

![Local architecture](./images/architecture.png)

![SVG architecture](https://example.com/architecture.svg)

![](https://example.com/missing-alt.png)

### Raw HTML

<div class="custom-layout">This raw HTML is intentionally included to trigger a portability warning.</div>

## Heading-level check

#### This H4 intentionally skips H3

## Long code check

```text
line 01
line 02
line 03
line 04
line 05
line 06
line 07
line 08
line 09
line 10
line 11
line 12
line 13
line 14
line 15
line 16
line 17
line 18
line 19
line 20
line 21
line 22
line 23
line 24
line 25
line 26
line 27
line 28
line 29
line 30
line 31
line 32
line 33
line 34
line 35
line 36
line 37
line 38
line 39
line 40
line 41
line 42
line 43
line 44
line 45
line 46
line 47
line 48
line 49
line 50
line 51
line 52
line 53
line 54
line 55
line 56
line 57
line 58
line 59
line 60
line 61
line 62
line 63
line 64
line 65
line 66
line 67
line 68
line 69
line 70
line 71
line 72
line 73
line 74
line 75
line 76
line 77
line 78
line 79
line 80
line 81
```

## Destination review

### Math

$$\mathrm{CTR} = \frac{clicks}{impressions}$$

### Remote image

![Publishing workflow](https://example.com/workflow.png)
