Welcome to this comprehensive guide on Markdown syntax, with examples of every standard markdown element and some custom components for VitePress or other markdown-based documentation platforms.
This is a blockquote.
Nested blockquote.
Use console.log("Hello World")
to log messages.
<template>
<div class="antialiased">
<div
class="h-14 px-8 flex items-center border-b border-gray-200 sticky top-0 bg-white"
>
<div class="flex items-center">
<NuxtLink
v-for="link in links"
:key="link.url"
:to="link.url"
class="text-[13px] text-gray-600 font-medium px-3 p-1"
>
{{ link.name }}
</NuxtLink>
</div>
</div>
<div class="mt-14 mx-auto max-w-7xl px-8">
<div class="text-sm">
<ContentDoc />
</div>
</div>
</div>
</template>
<script lang="ts" setup>
const links = [
{
name: "Home",
url: "/",
},
{
name: "Docs",
url: "/docs",
},
{
name: "Components",
url: "/components",
},
];
</script>
Name | Age | Occupation |
---|---|---|
John Doe | 30 | Software Dev |
Jane Smith | 25 | Data Scientist |
Sam Wilson | 35 | Designer |
Use badges for displaying tags or status:
<Badge text="New" color="green" />
Here's some text with a footnote. 1
Term : Definition of the term
Another Term : Another definition
This file covers essential Markdown syntax, lists, tables, code blocks, custom components, and custom containers often used in VitePress or markdown-based documentation setups.