Markdown features
tu-shu uses markdown-it for parsing — standard CommonMark plus a few enabled extensions.
Code blocks with Shiki
Inline code and triple-backtick blocks both work:
import { renderPage } from '@tu-lang/runtime'
renderPage(() => h('div', {}, ['hello']))
Tu-flavoured highlighting (when the tu grammar is registered):
type Point = { x: number; y: number }
export let origin: Point = { x: 0, y: 0 }
Lists, links, and emphasis
- Bullet item with bold and italic
- Link to the repo
- Inline
code
- Ordered
- List
- Items
Quotes and horizontal rules
A quote block.
Three dashes for an <hr>.
Tables
| Column 1 | Column 2 |
|---|---|
| left | right |
| more | data |