Convert a markdown file into a set of clickable samples in the TypeScript Playground
Takes a markdown document and lets you click through all of the TypeScript samples as a sidebar. Perfect for talks where you have all the code ahead of time and want to talk through each bit one by one.
So, first you put in your markdown.
Then you click through the code samples from each codeblock
The parser will pick up any codeblock like this:
Some preamble:
```ts
type MyThing = {
}
```
ts
or tsx
will show when selected, but with TypeScript's error handling disabledcmd/ctrl + g
to move to the next codeblockor
Then it will show up as a tab in the sidebar.
See CONTRIBUTING.md for the full details, however, TLDR:
git clone ...
yarn install
yarn start
Then tick the box for starting plugin development inside the TypeScript Playground.