Files
marqdo-cli/tests/conformance/ast/137-multiple-levels-document.ast.json
T
cflmy 847c2c1580 fix: float wire precision, native stack safety, refs diagnostics and fixtures
Findings from the conformance corpus workstream, all fixed at the source:

- value/wire: enable serde_json's float_roundtrip so typed wire floats keep
  their exact digits across foreign/plugin boundaries (Python pi*9 now stays
  28.274333882308138).
- host: default interpreter stack budget lowered to 128 frames so deeply
  recursive documents hit a structured resource.exhausted instead of exhausting
  the native debug-build Rust stack; --stack remains available.
- frontend/map: calling an external HTTP(S) link is reported as ref.unresolved
  (consistent with other unresolvable call targets) instead of math.unsupported.
- frontend/analyze: invalid front matter emits a single frontmatter.invalid
  diagnostic (the YAML error is not repeated by the imports pass).
- spec/mapping: clarify that would-be execution nodes outside any function body
  are inert with a markdown.inert_executable warning (no "return outside a
  function" hard-error claim).
- tests: add the conformance corpus and harness (150 AST goldens, 36 semantic
  goldens, 48 hard-error + 6 warning + 10 runtime-error negatives, CLI/module/
  plugin integration tests, prose-invariance properties) and update the
  three reported observations to the fixed behaviour.
2026-11-20 10:54:16 +08:00

129 lines
2.1 KiB
JSON

{
"kind": "document",
"span": {
"start": 0,
"end": 67
},
"children": [
{
"kind": "heading",
"level": 1,
"setext": false,
"span": {
"start": 0,
"end": 14
},
"children": [
{
"kind": "text",
"span": {
"start": 2,
"end": 14
},
"literal": "命名空间"
}
]
},
{
"kind": "heading",
"level": 2,
"setext": false,
"span": {
"start": 16,
"end": 28
},
"children": [
{
"kind": "text",
"span": {
"start": 19,
"end": 28
},
"literal": "函数一"
}
]
},
{
"kind": "heading",
"level": 3,
"setext": false,
"span": {
"start": 30,
"end": 40
},
"children": [
{
"kind": "text",
"span": {
"start": 34,
"end": 40
},
"literal": "小节"
}
]
},
{
"kind": "paragraph",
"span": {
"start": 42,
"end": 48
},
"children": [
{
"kind": "text",
"span": {
"start": 42,
"end": 48
},
"literal": "正文"
}
]
},
{
"kind": "heading",
"level": 2,
"setext": false,
"span": {
"start": 50,
"end": 62
},
"children": [
{
"kind": "text",
"span": {
"start": 53,
"end": 62
},
"literal": "函数二"
}
]
},
{
"kind": "paragraph",
"span": {
"start": 64,
"end": 67
},
"children": [
{
"kind": "emph",
"span": {
"start": 64,
"end": 67
},
"children": [
{
"kind": "text",
"span": {
"start": 65,
"end": 66
},
"literal": "1"
}
]
}
]
}
]
}