fix(parse): allow unbound GFM tables as discarded values
Bare tables in a function body evaluate as collections without requiring a name bind; restores welcome-page install tables. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
e848306187
commit
d1e2f0ced0
7 files changed
+53
-13
No files matched your search
@@ -132,6 +132,11 @@ fn structure_hello() {
|
||||
assert_out("tests/structure/hello.mq.md", "Hello World!");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn structure_unbound_table() {
|
||||
assert_out("tests/structure/unbound-table.mq.md", "ok");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn structure_object_handle() {
|
||||
assert_out("tests/structure/object-handle.mq.md", "counter\n3\n4");
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
---
|
||||
title: Unbound GFM table is a discarded value
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
Documentation may include a table that is not bound to a name. It is still a
|
||||
collection value; evaluating it must not error.
|
||||
|
||||
| Method | Notes |
|
||||
|--------|-------|
|
||||
| PPA | apt |
|
||||
| Source | cargo |
|
||||
|
||||
> print text=ok
|
||||
Reference in new issue
Block a user