diff options
Diffstat (limited to 'cli/tests/testdata/test/markdown_with_comment.md')
-rw-r--r-- | cli/tests/testdata/test/markdown_with_comment.md | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/cli/tests/testdata/test/markdown_with_comment.md b/cli/tests/testdata/test/markdown_with_comment.md new file mode 100644 index 000000000..886e88103 --- /dev/null +++ b/cli/tests/testdata/test/markdown_with_comment.md @@ -0,0 +1,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; +``` |