Back to Blog
Tutorial

Markdown Features Demo

Explore all the enhanced markdown features including alerts, tables, tiles, and code highlighting

Nova Learn TeamJanuary 27, 2024
Markdown Features Demo

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.

typescript
1interface 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}
python
1def 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}")
bash
1# 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.

FeatureDescriptionStatus
Code HighlightingSyntax highlighting for 20+ languages✅ Active
Alert MessagesInfo, success, warning, and error alerts✅ Active
TablesResponsive tables with hover effects✅ Active
TilesCard components with icons✅ Active
Dark ModeAutomatic theme detection✅ Active

Comparison Table

FrameworkLanguagePerformanceLearning Curve
ReactJavaScript/TypeScript⭐⭐⭐⭐Medium
VueJavaScript/TypeScript⭐⭐⭐⭐⭐Easy
AngularTypeScript⭐⭐⭐Hard
SvelteJavaScript/TypeScript⭐⭐⭐⭐⭐Easy

Lists

Unordered Lists

  • First item
  • Second item
    • Nested item
    • Another nested item
  • Third item

Ordered Lists

  1. First step
  2. Second step
    1. Sub-step A
    2. Sub-step B
  3. 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:

Coding

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:


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:

  1. Use meaningful variable names
  2. Write comments for complex logic
  3. Keep functions small and focused
typescript
1// 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.

markdown
documentation
features