Markdown <el-dm-markdown>

Markdown renderer with GitHub Flavored Markdown support, syntax highlighting, and customizable themes.

Basic Markdown

# Hello Markdown! This is a **bold** and *italic* text with ~~strikethrough~~. ## Features - GitHub Flavored Markdown - Syntax highlighting - Tables support > This is a blockquote with some wisdom. | Feature | Status | |---------|--------| | Tables | Supported | | Lists | Supported | | Code | Supported |

Code Highlighting - JavaScript

```javascript function greet(name) { console.log(`Hello, ${name}!`); return { greeting: 'Hello', name }; } const result = greet('World'); console.log(result); ```

Code Highlighting - TypeScript

```typescript interface User { id: number; name: string; email: string; } function createUser(name: string, email: string): User { return { id: Math.random(), name, email }; } const user: User = createUser('Alice', 'alice@example.com'); ```

Theme: Atom One Dark

```python def fibonacci(n): if n <= 1: return n return fibonacci(n-1) + fibonacci(n-2) def main(): for i in range(10): print(f"fib({i}) = {fibonacci(i)}") if __name__ == "__main__": main() ```

Theme Comparison

Default (GitHub)

```rust fn main() { let numbers = vec![1, 2, 3, 4, 5]; let sum: i32 = numbers.iter().sum(); println!("Sum: {}", sum); } ```

Atom One Dark

```rust fn main() { let numbers = vec![1, 2, 3, 4, 5]; let sum: i32 = numbers.iter().sum(); println!("Sum: {}", sum); } ```

Task Lists

## Project Checklist - [x] Create base element class - [x] Implement button component - [x] Implement card component - [x] Implement input component - [x] Add markdown component - [ ] Add more components - [ ] Write comprehensive tests

Streaming Mode (LLM Output)

Click the button below to simulate streaming LLM output. Notice how incomplete markdown syntax (like unclosed code blocks) is automatically fixed during streaming.