Add v0 markup-as-syntax constitution, examples, and tech stack choice.

Lock Markdown marker mappings, ship runnable-shaped examples, and select TypeScript + remark + Vitest for the reference implementation.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-04 10:42:36 +08:00
1 parent 117a03ca8e
commit 2cb05fd838
12 files changed
+507 -128

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
---
title: 分支示例
---
# main
根据 `x` 的符号输出中文说明。使用 `+` 作为分支列表符;最后一臂 `*` 为 else。
`x` = 0
+ `x` > 0
**正数**
+ `x` < 0
**负数**
+ *
**零**
+18
View File
@@ -0,0 +1,18 @@
---
title: 集合(表格)示例
---
# main
用 GFM 单列表格定义序列,再 foreach 打印。
`篮子` =
| 果 |
|----|
| 苹果 |
| 梨 |
| 桃 |
- [果](篮子)
**`果`**
+5
View File
@@ -0,0 +1,5 @@
# Hello World
本程序向标准输出打印一句问候。注释里的 **强调** 不会输出。
**Hello World!**
+15
View File
@@ -0,0 +1,15 @@
---
title: Hello World
description: 推荐风格入口——内嵌助手函数与调用(调用可写在定义之前,靠提升解析)
---
# main
向标准输出打印一句问候。助手函数定义在 main 内部,避免名字泄露。
> 输出函数 输出内容=Hello World!
## 输出函数
- 输出内容
**`输出内容`**
+25
View File
@@ -0,0 +1,25 @@
---
title: 循环示例
---
# main
## while:倒数
`n` = 3
- `n` > 0
**`n`**
`n` = `n` - 1
## foreach:遍历篮子
`篮子` =
| 果 |
|----|
| 苹果 |
| 梨 |
- [果](篮子)
**今天吃`果`**
+14
View File
@@ -0,0 +1,14 @@
---
title: 工具函数
description: 供其它文件通过 frontmatter > 导入的公有模块
---
# 加一
- n
*`n` + 1*
# 问候
- 谁
**你好,`谁`!**
+14
View File
@@ -0,0 +1,14 @@
---
title: 跨文件导入示例
> utils.mq.md
---
# main
frontmatter 中的 `> utils.mq.md` 导入同目录公有函数,再调用并打印返回值。
`y` = > 加一 n=41
**`y`**
> 问候 谁=Marqdo