Markdown basics
DocsLit uses standard GitHub Flavored Markdown (GFM) with one superpower: you can drop web components directly into your Markdown without imports or configuration.
Text formatting
Bold text for emphasis.
Italic text for secondary emphasis.
Strikethrough for removed content.
inline code for code references.
Link text for hyperlinks.
Headings
Use ## and ### headings to structure your content. DocsLit generates a table of contents from these headings automatically.
# (H1) for the page title only.
Lists
- First item
- Second item
- Nested item
- Third item
- First step
- Second step
- Third step
Tables
| Feature | Status |
|---|---|
| Markdown | Supported |
| Web components | Supported |
| JSX | Not needed |
Code blocks
Use fenced code blocks with a language identifier for syntax highlighting:
See code blocks for advanced features like filenames, tabs, and editable variables.
Images
Place image files in your docs/ directory and reference them with relative paths.
Internal links
Link to other pages using the page slug:
DocsLit resolves these links in both dev and static build modes.
Using web components
Drop any <wc-*> tag directly into your Markdown. No imports, no configuration:
Markdown source:
Rendered output:
You can write Markdown inside most components:
You can use bold, italic, code, and even:
- Bullet lists
- Links
- Other components
Familiar MDX-style names
You can also write components with the PascalCase names common to Mintlify, Fern, and other MDX-based tools. DocsLit rewrites them to the canonical wc-* form at build time.
Both styles work equally well — pick whichever feels natural. Each component page lists the MDX names that map to it, and the Mintlify migration guide covers the full set.
{props.foo} or run import/export statements. Strip those first if you're pasting MDX.
HTML pass-through
Standard HTML tags work in your Markdown. Use them for layout or styling that Markdown does not cover:
Next steps
- Set up page metadata with frontmatter
- Organize your sidebar with pages and navigation
- Add rich interactions with components