marqdo

外联ok

stdlib/外联.mq.md

Structure

import外联:lib/外联.mq.md
fn · h1main
comment

导入 lib/外联.mq.md。代码围栏与公式同构:空 RHS 赋值后跟 lang 代码块,得到 code 类型。用 运行 代码= 调用本机解释器。

code `hi` = python
print("hello-from-python")
comment

默认命令可用 设置命令 或 MARQDO_FOREIGN_PYTHON 覆盖;live view 里可改命令框再点 Run。

bind `out` = [外联.运行] 代码=`hi`
call> print text=`out`
Functions
Variables
  • hi code · python
    ```python print("hello-from-python") ```
  • out text
    hello-from-python

Execution

hello-from-python

Source

---
title: lib/外联 — 外部语言
description: 从 Marqdo 调用本机解释器(中文)
导入 外联:lib/外联.mq.md
---

# main

导入 lib/外联.mq.md。代码围栏与公式同构:空 RHS 赋值后跟 lang 代码块,得到 code 类型。用 运行 代码=`名` 调用本机解释器。

`hi` =
```python
print("hello-from-python")
```

默认命令可用 设置命令 或 MARQDO_FOREIGN_PYTHON 覆盖;live view 里可改命令框再点 Run。

**`out` = [外联.运行] 代码=`hi`**

> print text=`out`

Variable