Code blocks
Syntax-highlighted code with optional titles.
Syntax-highlighted code with optional titles.
Fenced code blocks use the language identifier on the opening fence:
```ts
const greeting = 'hello';
```Renders as:
const greeting = 'hello';Some renderers support a title in the fence info string:
```ts title="hello.ts"
const greeting = 'hello';
```Highlight changed lines if your renderer supports it:
```ts
- const greeting = 'hi';
+ const greeting = 'hello';
```