Skip to content

Markdown Extension Ekstra

This page demonstrates some of the built-in markdown extensions provided by VitePress.

File-reference

Input

md
[Adobe-Fil.pdf](/Adobe-Fil.pdf) - target: \_self (defult)

<a href="./Adobe-Fil.pdf" target="_blank">Adobe-Fil.pdf</a> - target: \_blank

![LMH_element-Gul.png](/LMH_element-Gul.png)

Output

Adobe-Fil.pdf - target: _self (defult)

Adobe-Fil.pdf - target: _blank

LMH_element-Gul.png

GitHub-Style Tables

Input

md
| Tables        |      Are      |  Cool |
| ------------- | :-----------: | ----: |
| col 3 is      | right-aligned | $1600 |
| col 2 is      |   centered    |   $12 |
| zebra stripes |   are neat    |    $1 |

Output

TablesAreCool
col 3 isright-aligned$1600
col 2 iscentered$12
zebra stripesare neat$1

Custom Title

You may set custom title by appending the text right after the "type" of the container.

Input

md
::: danger STOP
Danger zone, do not proceed
:::

::: details Click me to view the code

```js
console.log('Hello, VitePress!');
```

:::

Output

STOP

Danger zone, do not proceed

Click me to view the code
js
console.log('Hello, VitePress!');