From 56b9bfa5a3626c3bd693db053762235e74fc17b6 Mon Sep 17 00:00:00 2001 From: cflmy Date: Wed, 12 Aug 2026 15:37:26 +0800 Subject: [PATCH] Fix subtask overview pages so tables are not parsed as statements. Co-authored-by: Cursor --- public/stdlib/subtask.mq.md | 15 ++++++++------- public/stdlib/子任务.mq.md | 15 ++++++++------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/public/stdlib/subtask.mq.md b/public/stdlib/subtask.mq.md index 9826ecb..2242669 100644 --- a/public/stdlib/subtask.mq.md +++ b/public/stdlib/subtask.mq.md @@ -6,14 +6,15 @@ description: Spawn file, function, or foreign code in parallel # main -spawn picks one mode (others default to None): +spawn picks one mode (others default to None). -| Argument | Runs | wait returns | -|----------|------|----------------| -| path= | marqdo run child process | exit code | -| fn= + optional args= | function in a thread (entry module) | return value | -| code= | foreign fence subprocess | stdout text | -| lang= + source= | foreign source subprocess | stdout text | +path= runs a marqdo run child process; wait returns the exit code. + +fn= plus optional args= runs a function in a thread; wait returns the return value. + +code= runs a foreign fence subprocess; wait returns stdout text. + +lang= plus source= runs foreign source; wait returns stdout text. File children are silent unless quiet=False. Also: poll id=, kill id=, wait_all. Parent exit kills file/foreign children. diff --git a/public/stdlib/子任务.mq.md b/public/stdlib/子任务.mq.md index b10450e..e616b0d 100644 --- a/public/stdlib/子任务.mq.md +++ b/public/stdlib/子任务.mq.md @@ -6,14 +6,15 @@ description: 文件、函数或外联代码并行执行 # main -启动(spawn)四选一(其余参数默认 None): +启动(spawn)四选一(其余参数默认 None)。 -| 参数 | 方式 | 等待 返回 | -|------|------|-------------| -| 路径= | marqdo run 子进程 | 退出码 | -| 函数= + 可选 参数= | 入口模块中的函数(线程) | 返回值 | -| 代码= | 外联代码块子进程 | stdout 文本 | -| 语言= + 源码= | 外联源码子进程 | stdout 文本 | +路径=:marqdo run 子进程;等待返回退出码。 + +函数= 加可选 参数=:入口模块中的函数(线程);等待返回返回值。 + +代码=:外联代码块子进程;等待返回 stdout 文本。 + +语言= 加 源码=:外联源码子进程;等待返回 stdout 文本。 文件子任务默认静默;静默=假 时继承父终端。另有:探测、终止、等待全部。父进程结束会终止文件/外联子进程。