Markdown Features Demo
Explore all the enhanced markdown features including alerts, tables, tiles, and code highlighting
This post demonstrates all the enhanced markdown features available in Nova Learn.
Code Blocks
Code blocks support syntax highlighting for multiple languages including Python, TypeScript, JavaScript, and Bash.
typescript1interface User { 2 id: string; 3 name: string; 4 email: string; 5} 6 7function getUser(id: string): User { 8 return { 9 id, 10 name: 'John Doe', 11 email: 'john@example.com', 12 }; 13}
python1def calculate_sum(numbers): 2 """Calculate the sum of a list of numbers.""" 3 return sum(numbers) 4 5result = calculate_sum([1, 2, 3, 4, 5]) 6print(f"The sum is: {result}")
bash1# Install dependencies 2npm install 3 4# Run development server 5npm run dev 6 7# Build for production 8npm run build
Alert Messages
You can create different types of alert messages using blockquote syntax with special indicators.
This is an informational alert. Use it to provide helpful context or additional information.
This is a success alert. Great for showing positive outcomes or completed actions.
This is a warning alert. Use it to highlight important cautions or potential issues.
This is an error alert. Perfect for showing critical information or errors that need attention.
Tables
Tables are fully supported with responsive design and proper styling.
| Feature | Description | Status |
|---|---|---|
| Code Highlighting | Syntax highlighting for 20+ languages | ✅ Active |
| Alert Messages | Info, success, warning, and error alerts | ✅ Active |
| Tables | Responsive tables with hover effects | ✅ Active |
| Tiles | Card components with icons | ✅ Active |
| Dark Mode | Automatic theme detection | ✅ Active |
Comparison Table
| Framework | Language | Performance | Learning Curve |
|---|---|---|---|
| React | JavaScript/TypeScript | ⭐⭐⭐⭐ | Medium |
| Vue | JavaScript/TypeScript | ⭐⭐⭐⭐⭐ | Easy |
| Angular | TypeScript | ⭐⭐⭐ | Hard |
| Svelte | JavaScript/TypeScript | ⭐⭐⭐⭐⭐ | Easy |
Lists
Unordered Lists
- First item
- Second item
- Nested item
- Another nested item
- Third item
Ordered Lists
- First step
- Second step
- Sub-step A
- Sub-step B
- Third step
Inline Code
You can use inline code like const x = 42 within your text. It supports variables, functions(), and commands.
Blockquotes
Regular blockquotes still work as expected:
"The best way to predict the future is to invent it." — Alan Kay
Images
Images are automatically styled with rounded corners:
Emphasis
You can use bold text for emphasis, or italic text for subtle emphasis. You can even combine them with bold and italic.
Horizontal Rules
Use horizontal rules to separate sections:
Links
Check out Nova Learn for more courses and tutorials. External links work too: MDN Web Docs.
Combining Features
You can combine multiple features together:
Pro Tip: When writing code, always follow these best practices:
- Use meaningful variable names
- Write comments for complex logic
- Keep functions small and focused
typescript1// Good example 2function calculateTotalPrice(items: Item[]): number { 3 return items.reduce((sum, item) => sum + item.price, 0); 4}
This demonstrates how alerts, code blocks, lists, and inline formatting can work together seamlessly.