Files
marqdo/tests/structure/collection-cell-expr.mq.md
T
cflmyandCursor bfb10d172b feat(markup): adopt v0.3 as sole mapping (** code, * return)
Make prose-unified Markup the only runtime: bold segments are executable,
italic is return, params can be inferred from body/prose, with no v0.2 dual
mode. Migrate lib and structure/keywords golds; gate on tests/markup-v03.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 20:38:53 +08:00

46 lines
661 B
Markdown

---
title: table cell expressions
description: Data cells evaluate like call-arg values (`var`, paths, hyphen prose).
---
# main
**secret = "sk-live"**
**name = "gpt-4o-mini"**
`cfg` =
| api_key | model | base |
|---------|-------|------|
| `secret` | `name` | https://api.openai.com/v1 |
> print text=`cfg`[^api_key]
> print text=`cfg`[^model]
> print text=`cfg`[^base]
`paths` =
| p |
|---|
| /chat/completions |
> print text=`paths`[^1]
`rec` =
| @ | role | content |
|---|------|---------|
| 1 | user | `secret` |
> print text=`rec`[^1][^content]
`ratios` =
| r |
|---|
| "1/5" |
| "16/9" |
> print text=`ratios`[^1]
> print text=`ratios`[^2]