Sample Documentation Page
This page contains examples of all available Docusaurus markdown and MDX features to test styling and functionality.
Headings
All heading levels from H2 to H6:
Heading Level 2
Heading Level 3
Heading Level 4
Heading Level 5
Heading Level 6
Text Formatting
This paragraph demonstrates various text formatting options. You can make text bold, italic, bold and italic, strikethrough, or use inline code
. You can also create links to external sites or internal links.
Subscript and Superscript
Water is H2O and Einstein's famous equation is E=mc2.
Lists
Unordered Lists
- First item
- Second item
- Nested item
- Another nested item
- Double nested item
- Third item
Ordered Lists
- First numbered item
- Second numbered item
- Nested numbered item
- Another nested item
- Double nested numbered item
- Third numbered item
Task Lists
- Completed task
- Incomplete task
- Another incomplete task
- Nested completed task
- Nested incomplete task
Blockquotes
This is a simple blockquote.
This is a longer blockquote that spans multiple lines to demonstrate how the styling works with longer content. It should wrap nicely and maintain proper formatting.
This is a second paragraph within the same blockquote.
Nested Blockquotes
This is the first level of quoting.
This is a nested blockquote.
Back to the first level.
Horizontal Rules
Content above the horizontal rule.
Content below the horizontal rule.
Tables
Feature | Status | Notes |
---|---|---|
Basic Table | ✅ Complete | Works great |
Column Alignment | ✅ Complete | Left, center, right |
Complex Content | ✅ Complete | Bold, italic, code |
Table with Alignment
Left Aligned | Center Aligned | Right Aligned |
---|---|---|
Left | Center | Right |
This is a longer text | Center | Right |
Short | Center content here | Right |
Images
Basic Image
Image with Title
Linked Image
Code Blocks
Simple Code Block
This is a simple code block without syntax highlighting.
JavaScript with Syntax Highlighting
function greetUser(name) {
console.log(`Hello, ${name}!`);
return `Welcome to BracketSpace, ${name}`;
}
greetUser('Developer');
Code Block with Title
<?php
/**
* Add custom notification trigger
*/
add_action('init', function() {
notification_register_trigger(new CustomTrigger());
});
Code Block with Line Highlighting
import React from 'react';
function Component() {
const message = 'This line is highlighted';
const anotherMessage = 'This line too';
const thirdMessage = 'And this one';
return <div>{message}</div>;
}
Code Block with Line Numbers
def calculate_tax(amount, rate=0.1):
"""
Calculate tax for a given amount
"""
tax = amount * rate
total = amount + tax
return {
'original': amount,
'tax': tax,
'total': total
}
# Usage example
result = calculate_tax(100, 0.15)
printf("Total: ${result['total']}")
Multi-Language Code Tabs
- PHP
- JavaScript
- Python
<?php
$notification = new Notification([
'title' => 'Welcome!',
'message' => 'Thank you for joining us.'
]);
$notification->send();
const notification = {
title: 'Welcome!',
message: 'Thank you for joining us.'
};
sendNotification(notification);
notification = {
'title': 'Welcome!',
'message': 'Thank you for joining us.'
}
send_notification(notification)
Admonitions
Note Admonition
This is a note admonition. Use it for general information that users should be aware of.
This is a note with a custom title. You can include markdown formatting inside admonitions.
Tip Admonition
This is a tip admonition. Use it for helpful suggestions and best practices.
Info Admonition
This is an info admonition. Use it for informational content that provides context.
Warning Admonition
This is a warning admonition. Use it to highlight potential issues or important considerations.
Danger Admonition
This is a danger admonition. Use it for critical warnings about potential problems or breaking changes.
Collapsible Sections
Click to expand this section
This content is hidden by default and only shown when the user clicks the summary. This is great for:
- FAQ sections
- Optional advanced configuration
- Detailed explanations
- Long code examples
# This code is hidden until expanded
npm install @bracketspace/notification
Nested Collapsible Content
You can also nest collapsible sections:
Inner collapsible section
This is content within a nested collapsible section. You can include any markdown content here:
- Lists
- Code blocks
- Images
- More collapsible sections!
Advanced Tabs Usage
Grouped Tabs
Here's an example with operating system specific instructions:
- Windows
- macOS
- Linux
# Windows installation
npm install -g @bracketspace/notification-cli
# macOS installation
brew install bracketspace-notification
# Linux installation
sudo apt-get install bracketspace-notification
And here's another set of tabs with the same group ID - they'll sync:
- Windows
- macOS
- Linux
To run on Windows:
notification-cli.exe --version
To run on macOS:
notification --version
To run on Linux:
notification --version
Definition Lists
HTML definition lists are also supported:
- Notification
- A system for sending automated messages to users based on WordPress events.
- Trigger
- An event that initiates the sending of a notification.
- Carrier
- The method used to deliver notifications (email, SMS, webhooks, etc.).
Complex Content Combinations
You can combine different elements for rich documentation:
When setting up complex notification workflows, consider using tabs to organize different approaches:
- Simple Setup
- Advanced Setup
For basic notifications, use this configuration:
add_action('user_register', function($user_id) {
notification([
'title' => 'Welcome!',
'user_id' => $user_id
])->trigger('user/registered');
});
For complex scenarios with multiple carriers:
View advanced configuration
add_action('user_register', function($user_id) {
$notification = notification([
'title' => 'Welcome!',
'user_id' => $user_id,
'carriers' => ['email', 'sms', 'webhook']
]);
// Add conditional logic
if (user_has_role($user_id, 'premium')) {
$notification->add_merge_tag('premium_benefits', get_premium_benefits());
}
$notification->trigger('user/registered');
});
Footnotes
Here's some text with a footnote reference1. You can also have multiple footnotes2.
HTML Elements
You can also use HTML elements when needed:
This is a custom styled div using inline styles with CSS variables from our design system.
Ctrl + C to copy, Ctrl + V to paste.
Summary
This sample page demonstrates the full range of Docusaurus markdown and MDX capabilities:
- ✅ All heading levels (H1-H6)
- ✅ Text formatting (bold, italic, strikethrough, code)
- ✅ Links (internal, external)
- ✅ Lists (ordered, unordered, nested, tasks)
- ✅ Blockquotes (simple, nested)
- ✅ Tables (basic, aligned)
- ✅ Images (basic, titled, linked)
- ✅ Code blocks (simple, highlighted, titled, numbered)
- ✅ All admonition types (note, tip, info, warning, danger)
- ✅ Tabs (basic, grouped, with code)
- ✅ Collapsible sections
- ✅ Definition lists
- ✅ HTML elements
- ✅ Footnotes
- ✅ Complex combinations
This page serves as both a reference for content creators and a testing ground for styling consistency across the documentation site.