summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/test/markdown_with_comment.md
blob: 886e881033459c41c1a0f040156cf43fb6794a95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Documentation

The following examples are inside HTML comments and will not trigger the
type-checker:

<!-- ```ts ignore
const value: Invalid = "ignored";
``` -->

<!--
```ts
const a: string = 42;
```
-->

<!--

This is a comment.

```ts
const a: string = 42;
```

Something something more comments.

```typescript
const a: boolean = "true";
```

-->

The following example will trigger the type-checker to fail:

```ts
const a: string = 42;
```