marqdo

内置 输入ok

keywords/输入.mq.md

文档

main

说明

内置「输入」读一行。演示与 marqdo view / 静态导出可在 frontmatter 写「输入:」(或 stdin:)。CLI 也可用管道或 --stdin-file。Live view 可用 Preset input 覆盖。

`名字` = > 输入 提示="名字:"
> 打印 内容=你好 名字!
Functions
Variables
  • description text
    从 stdin 读一行;可选提示。演示数据写在 frontmatter 输入。
  • markup text
    occlusion
  • title text
    内置 输入
  • 名字 text
    小明
  • 输入 text
    小明
可执行知识(辅助)

文档中的步骤

结构步骤(非实际执行时序)

  1. call 打印

运行与结果

Demo stdin (static export cannot re-run interactively); prompts: 名字:

小明
名字:你好 小明!
完整源码
---
markup: occlusion
title: 内置 输入
description: 从 stdin 读一行;可选提示。演示数据写在 frontmatter 输入。
输入: 小明
---

# main

内置「输入」读一行。演示与 marqdo view / 静态导出可在 frontmatter 写「输入:」(或 stdin:)。CLI 也可用管道或 --stdin-file。Live view 可用 Preset input 覆盖。

**`名字` = > 输入 提示="名字:"**

> 打印 内容=你好 `名字`!

Variable