Private beta, by invitation. It may change without warning. While the beta lasts, some paid features are free. See pricing

trumlyspec GitHub
Try trumly

Conformance cases /

format-body

Tests one part of the structure checks.

Our implementation passes this case when its check --json output for the input below equals the expected output.

Input

nodes/a.md
---
id: a
type: doc
unknown_key: ignored
---

# Heading

Text with --- inside.
---
more
nodes/b.md
---
id: b
type: doc
---

Expected output

0 ghosts · 0 load errors · 2 nodes · 0 results

expected.json
{
 "ghosts": [],
 "load_errors": [],
 "nodes": [
  {
   "body": "# Heading\n\nText with --- inside.\n---\nmore",
   "fields": {},
   "id": "a",
   "links": [],
   "parent": null,
   "plane": null,
   "title": "a",
   "type": "doc"
  },
  {
   "body": "",
   "fields": {},
   "id": "b",
   "links": [],
   "parent": null,
   "plane": null,
   "title": "b",
   "type": "doc"
  }
 ],
 "results": [],
 "structure": {
  "errors": [],
  "warnings": []
 }
}