Treat bare ids as variables in italic/bold, and land table/quantum follow-ups.
Prefer-var parsing in *…* / **…* (quoted strings for text), table cell expressions, digit map footnotes, and quantum steps/draw with updated golds and LLM sources. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
ff6425e6c5
commit
91d51f3f0a
63 files changed
+1542
-477
No files matched your search
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: bare id in italic and bold
|
||||
description: Inside *…* / **…**, bare ids are variables; strings need quotes.
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
*answer = 1*
|
||||
*n = answer + 1*
|
||||
*`ticked` = 2*
|
||||
*`s` = 'quoted'*
|
||||
|
||||
> print text=`n`
|
||||
> print text=`ticked`
|
||||
> print text=`s`
|
||||
|
||||
*`a` = > ret_var x=7*
|
||||
> print text=`a`
|
||||
|
||||
*`b` = > ret_str*
|
||||
> print text=`b`
|
||||
|
||||
*`c` = > ret_single*
|
||||
> print text=`c`
|
||||
|
||||
## ret_var
|
||||
+ `x`
|
||||
|
||||
**x**
|
||||
|
||||
## ret_str
|
||||
|
||||
**"ok"**
|
||||
|
||||
## ret_single
|
||||
|
||||
**'hi'**
|
||||
@@ -0,0 +1,35 @@
|
||||
---
|
||||
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]
|
||||
@@ -22,5 +22,5 @@ title: 横表单行 → 字典
|
||||
|
||||
> print text=`种`
|
||||
|
||||
- [`键`](`分类`)
|
||||
- [键](分类)
|
||||
> print text=`键`
|
||||
@@ -23,5 +23,5 @@ title: 行向记录表(首列 行 / @)
|
||||
|
||||
> print text=`量`
|
||||
|
||||
- [`记录`](`订单`)
|
||||
- [记录](订单)
|
||||
> print text=`记录`
|
||||
@@ -12,5 +12,5 @@ title: 集合(表格)示例
|
||||
| 梨 |
|
||||
| 桃 |
|
||||
|
||||
- [`果`](`篮子`)
|
||||
- [果](篮子)
|
||||
> print text=`果`
|
||||
@@ -12,7 +12,7 @@ title: 脚注取元(列表下标)
|
||||
| 梨 |
|
||||
| 桃 |
|
||||
|
||||
*`第一` = `篮子`[^1] *
|
||||
*`第一` = 篮子[^1] *
|
||||
|
||||
> print text=`第一`
|
||||
|
||||
@@ -20,6 +20,6 @@ title: 脚注取元(列表下标)
|
||||
|
||||
> print text=`第二`
|
||||
|
||||
*`第三` = `篮子`[^3] *
|
||||
*`第三` = 篮子[^3] *
|
||||
|
||||
> print text=`第三`
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
title: map footnote digit keys
|
||||
description: Pure-digit labels are map keys (text), not list indices. Bare base ok.
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
`p` =
|
||||
|
||||
| 00 | 11 |
|
||||
|----|----|
|
||||
| half | other |
|
||||
|
||||
*`a` = p[^00] *
|
||||
*`b` = `p`[^11] *
|
||||
|
||||
> print text=`a`
|
||||
> print text=`b`
|
||||
@@ -21,5 +21,5 @@ title: 循环示例
|
||||
| 苹果 |
|
||||
| 梨 |
|
||||
|
||||
- [`果`](`篮子`)
|
||||
- [果](篮子)
|
||||
> print text=今天吃`果`
|
||||
Reference in new issue
Block a user