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