ReDocs Test Page
This page demonstrates all supported Markdown features.
Text Formatting
Regular text with bold, italic, and bold italic text.
You can also use inline code for technical terms.
Links
Lists
Unordered list:
First item
Second item
Nested item
Another nested item
Third item
Ordered list:
First step
Second step
Sub-step one
Sub-step two
Third step
Code Blocks
Simple code:
1function hello() {
2 ​console.log("Hello, ReDocs!");
3}
TypeScript example:
1interface Props {
2 ​name: string;
3 ​age?: number;
4}
5
6const Component = component((props: Props) => <div>Hello, {props.name}!</div>);
Tables
| Feature | Status | Notes |
|---|---|---|
| Markdown | ✅ | Full support |
| Code highlighting | ✅ | Multiple languages |
| Live reload | ✅ | In development |
Blockquotes
Important note about documentation
Can span multiple lines
And can be nested
Images
Components
Example of using Reface UI components:
1const Button = styled.button/*css*/ `
2 ​& {
3 ​ ​background: var(--colors-accent-base);
4 ​ ​color: white;
5 ​ ​padding: var(--spacing-md);
6 ​ ​border-radius: var(--radius-md);
7 ​}
8
9 ​&:hover {
10 ​ ​background: var(--colors-accent-hover);
11 ​}
12`;
API Reference
Functions
parseMarkdown(content: string): ParsedMarkdown
Parses markdown content into Reface components.
Types
1interface DocPage {
2 ​path: string;
3 ​title: string;
4 ​content: ParsedMarkdown;
5}
Configuration
1{
2 ​"port": 3000,
3 ​"watch": true,
4 ​"root": "./docs"
5}