Features

nstreamdown supports a comprehensive set of markdown features, all rendered natively for the best possible performance. Works with Angular, React, Solid, Svelte, and Vue.

Headings

All six heading levels are supported with native text styling:

# H1 Heading
## H2 Heading
### H3 Heading
#### H4 Heading
##### H5 Heading
###### H6 Heading

Text Formatting

Rich text formatting including bold, italic, strikethrough, and inline code:

**Bold text**
*Italic text*
***Bold and italic***
~~Strikethrough~~
`Inline code`

Links and Images

Native handling of links and images with loading states:

[Link text](https://example.com)
![Image alt text](https://example.com/image.png)

Smart Images: Images include loading indicators and graceful error handling when images fail to load.

Lists

Ordered, unordered, and nested lists:

Unordered
- Item 1
- Item 2
- Nested item
- Another nested
- Item 3
Ordered
1. First item
2. Second item
1. Nested item
2. Another nested
3. Third item

Code Blocks
Syntax Highlighting

Fenced code blocks with syntax highlighting for popular languages:

```typescript
interface User {
id: string;
name: string;
email: string;
}
const getUser = async (id: string): Promise<User> => {
const response = await fetch(`/api/users/${id}`);
return response.json();
};
```

Supported languages include: TypeScript, JavaScript, Swift, Python, Java, C++, Go, Rust, and many more.

Tables

GitHub Flavored Markdown tables with interactive controls:

| Feature | Status | Notes |
|---------|--------|-------|
| Streaming | ✅ | Real-time updates |
| Tables | ✅ | Interactive |
| Math | ✅ | LaTeX support |

Interactive Tables: Users can copy table content as plain text or export as CSV for use in spreadsheet applications.

Blockquotes

Styled blockquotes with native border styling:

> This is a blockquote
> It can span multiple lines
>
> And include paragraphs

Mathematical Expressions
LaTeX

Render mathematical expressions using LaTeX/KaTeX syntax:

Inline math: $E = mc^2$
Block math:
$$
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$

Horizontal Rules

Visual section separators:

Content above
---
Content below

CJK Language Support
中文 日本語 한국어

Full support for Chinese, Japanese, and Korean characters with proper text rendering and line breaking:

# 你好世界
这是一个**中文**示例。
# こんにちは世界
これは**日本語**の例です。
# 안녕하세요 세계
이것은 **한국어** 예제입니다.

Feature Summary

Real-time Streaming
Incomplete Token Handling
Headings (H1-H6)
Bold/Italic/Strike
Inline Code
Fenced Code Blocks
Syntax Highlighting
Links
Images
Ordered Lists
Unordered Lists
Nested Lists
Tables
Blockquotes
Horizontal Rules
Math Expressions
CJK Support
🔜Mermaid Diagrams