@agentshouse/mdmodel 0.1.0-ccf1367190878 → 0.1.0-cd6a8e5bc7efc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (411) hide show
  1. package/API.md +281 -232
  2. package/README.md +27 -29
  3. package/dist/body.d.ts +85 -0
  4. package/dist/body.d.ts.map +1 -0
  5. package/dist/body.js +1083 -0
  6. package/dist/built-in.d.ts +4 -0
  7. package/dist/built-in.d.ts.map +1 -0
  8. package/dist/built-in.js +19 -0
  9. package/dist/crockford.d.ts +4 -0
  10. package/dist/crockford.d.ts.map +1 -0
  11. package/dist/crockford.js +3 -0
  12. package/dist/definition.d.ts +22 -10
  13. package/dist/definition.d.ts.map +1 -1
  14. package/dist/definition.js +219 -84
  15. package/dist/divide.d.ts.map +1 -1
  16. package/dist/divide.js +32 -21
  17. package/dist/document.d.ts +15 -8
  18. package/dist/document.d.ts.map +1 -1
  19. package/dist/document.js +968 -241
  20. package/dist/event.d.ts +77 -0
  21. package/dist/event.d.ts.map +1 -0
  22. package/dist/event.js +200 -0
  23. package/dist/facts.d.ts +15 -0
  24. package/dist/facts.d.ts.map +1 -0
  25. package/dist/facts.js +41 -0
  26. package/dist/fields.d.ts +1 -1
  27. package/dist/fields.d.ts.map +1 -1
  28. package/dist/fields.js +1 -1
  29. package/dist/form.d.ts +4 -0
  30. package/dist/form.d.ts.map +1 -0
  31. package/dist/form.js +152 -0
  32. package/dist/house-model.d.ts +827 -0
  33. package/dist/house-model.d.ts.map +1 -0
  34. package/dist/house-model.js +459 -0
  35. package/dist/house-references.d.ts +4 -0
  36. package/dist/house-references.d.ts.map +1 -0
  37. package/dist/house-references.js +7 -0
  38. package/dist/index.d.ts +35 -12
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +21 -8
  41. package/dist/kinds.d.ts +18 -0
  42. package/dist/kinds.d.ts.map +1 -0
  43. package/dist/kinds.js +150 -0
  44. package/dist/markdown.d.ts +75 -0
  45. package/dist/markdown.d.ts.map +1 -0
  46. package/dist/markdown.js +265 -0
  47. package/dist/paths.d.ts +19 -2
  48. package/dist/paths.d.ts.map +1 -1
  49. package/dist/paths.js +96 -15
  50. package/dist/pattern.d.ts +10 -0
  51. package/dist/pattern.d.ts.map +1 -0
  52. package/dist/pattern.js +356 -0
  53. package/dist/project.d.ts +1 -0
  54. package/dist/project.d.ts.map +1 -1
  55. package/dist/project.js +61 -65
  56. package/dist/query/language.d.ts +254 -0
  57. package/dist/query/language.d.ts.map +1 -0
  58. package/dist/query/language.js +620 -0
  59. package/dist/query/match.d.ts +14 -0
  60. package/dist/query/match.d.ts.map +1 -0
  61. package/dist/query/match.js +150 -0
  62. package/dist/query/rows.d.ts +32 -0
  63. package/dist/query/rows.d.ts.map +1 -0
  64. package/dist/query/rows.js +161 -0
  65. package/dist/query/sql.d.ts +39 -0
  66. package/dist/query/sql.d.ts.map +1 -0
  67. package/dist/query/sql.js +285 -0
  68. package/dist/references.d.ts.map +1 -1
  69. package/dist/references.js +6 -1
  70. package/dist/refuse.d.ts +1 -0
  71. package/dist/refuse.d.ts.map +1 -1
  72. package/dist/refuse.js +1 -0
  73. package/dist/reserved.d.ts +6 -0
  74. package/dist/reserved.d.ts.map +1 -0
  75. package/dist/reserved.js +21 -0
  76. package/dist/room-types.d.ts +7 -0
  77. package/dist/room-types.d.ts.map +1 -0
  78. package/dist/room-types.js +136 -0
  79. package/dist/schema.d.ts +0 -1
  80. package/dist/schema.d.ts.map +1 -1
  81. package/dist/schema.js +8 -20
  82. package/dist/types.d.ts +43 -5
  83. package/dist/types.d.ts.map +1 -1
  84. package/dist/validate.d.ts +32 -4
  85. package/dist/validate.d.ts.map +1 -1
  86. package/dist/validate.js +344 -151
  87. package/dist/yaml.d.ts.map +1 -1
  88. package/dist/yaml.js +40 -14
  89. package/fixtures/README.md +61 -24
  90. package/fixtures/cases/absent-link-dangles/library/item.md +1 -1
  91. package/fixtures/cases/absent-link-dangles/schema.yaml +2 -3
  92. package/fixtures/cases/absent-optional-field/library/companies/acme.md +1 -1
  93. package/fixtures/cases/absent-optional-field/library/deals/lead.md +3 -3
  94. package/fixtures/cases/absent-optional-field/schema.yaml +10 -11
  95. package/fixtures/cases/absolute-link/library/item.md +1 -1
  96. package/fixtures/cases/absolute-link/schema.yaml +2 -3
  97. package/fixtures/cases/attachment-reference-any-file/library/companies/acme.md +1 -1
  98. package/fixtures/cases/attachment-reference-any-file/library/deals/renewal.md +13 -10
  99. package/fixtures/cases/attachment-reference-any-file/library/places/depot.md +1 -1
  100. package/fixtures/cases/attachment-reference-any-file/library/products/seats.md +1 -1
  101. package/fixtures/cases/attachment-reference-any-file/library/products/support.md +1 -1
  102. package/fixtures/cases/attachment-reference-dangles/library/companies/acme.md +1 -1
  103. package/fixtures/cases/attachment-reference-dangles/library/deals/renewal.md +13 -10
  104. package/fixtures/cases/attachment-reference-dangles/library/places/depot.md +1 -1
  105. package/fixtures/cases/attachment-reference-dangles/library/products/seats.md +1 -1
  106. package/fixtures/cases/attachment-reference-dangles/library/products/support.md +1 -1
  107. package/fixtures/cases/attachment-reference-outside/expected.json +2 -1
  108. package/fixtures/cases/attachment-reference-outside/library/companies/acme.md +1 -1
  109. package/fixtures/cases/attachment-reference-outside/library/deals/renewal.md +13 -10
  110. package/fixtures/cases/attachment-reference-outside/library/places/depot.md +1 -1
  111. package/fixtures/cases/attachment-reference-outside/library/products/seats.md +1 -1
  112. package/fixtures/cases/attachment-reference-outside/library/products/support.md +1 -1
  113. package/fixtures/cases/binary-any-reference/expected.json +2 -1
  114. package/fixtures/cases/binary-any-reference/library/notes/draft.md +1 -1
  115. package/fixtures/cases/binary-prototype-reference/expected.json +2 -1
  116. package/fixtures/cases/binary-prototype-reference/library/notes/draft.md +1 -1
  117. package/fixtures/cases/binary-typed-reference/expected.json +2 -1
  118. package/fixtures/cases/binary-typed-reference/library/notes/draft.md +1 -1
  119. package/fixtures/cases/boolean-field/expected.json +2 -1
  120. package/fixtures/cases/boolean-field/library/companies/acme.md +1 -1
  121. package/fixtures/cases/boolean-field/library/deals/renewal.md +49 -24
  122. package/fixtures/cases/boolean-field/schema.yaml +10 -11
  123. package/fixtures/cases/bracketed-link-definition/library/item.md +1 -1
  124. package/fixtures/cases/bracketed-link-definition/schema.yaml +2 -3
  125. package/fixtures/cases/closed-nested-object/expected.json +2 -1
  126. package/fixtures/cases/closed-nested-object/library/companies/acme.md +1 -1
  127. package/fixtures/cases/closed-nested-object/library/deals/renewal.md +50 -25
  128. package/fixtures/cases/closed-nested-object/schema.yaml +10 -11
  129. package/fixtures/cases/composed-root-reference/library/a.md +2 -2
  130. package/fixtures/cases/conditional-long-text/expected.json +7 -0
  131. package/fixtures/cases/conditional-long-text/library/questions/hosting.md +9 -0
  132. package/fixtures/cases/conditional-long-text/library/questions/payments.md +12 -0
  133. package/fixtures/cases/conditional-long-text/schema.yaml +13 -0
  134. package/fixtures/cases/cross-room-link/library/clients/acme.md +6 -0
  135. package/fixtures/cases/cross-room-link/schema.yaml +3 -0
  136. package/fixtures/cases/cross-room-reference/expected.json +1 -0
  137. package/fixtures/cases/cross-room-reference/library/clients/acme.md +9 -0
  138. package/fixtures/cases/cross-room-reference/schema.yaml +8 -0
  139. package/fixtures/cases/date-time-format/expected.json +2 -1
  140. package/fixtures/cases/date-time-format/library/companies/acme.md +1 -1
  141. package/fixtures/cases/date-time-format/library/deals/renewal.md +49 -24
  142. package/fixtures/cases/date-time-format/schema.yaml +10 -11
  143. package/fixtures/cases/default-unfilled/library/companies/acme.md +1 -1
  144. package/fixtures/cases/default-unfilled/library/deals/renewal.md +47 -22
  145. package/fixtures/cases/default-unfilled/schema.yaml +10 -11
  146. package/fixtures/cases/defs-pattern/expected.json +2 -1
  147. package/fixtures/cases/defs-pattern/library/companies/acme.md +1 -1
  148. package/fixtures/cases/defs-pattern/library/deals/renewal.md +49 -24
  149. package/fixtures/cases/defs-pattern/schema.yaml +10 -11
  150. package/fixtures/cases/dependent-rule/library/companies/acme.md +1 -1
  151. package/fixtures/cases/dependent-rule/library/deals/renewal.md +48 -23
  152. package/fixtures/cases/dependent-rule/schema.yaml +10 -11
  153. package/fixtures/cases/duplicate-link-definition/library/item.md +1 -1
  154. package/fixtures/cases/duplicate-link-definition/schema.yaml +2 -3
  155. package/fixtures/cases/email-format/expected.json +2 -1
  156. package/fixtures/cases/email-format/library/companies/acme.md +1 -1
  157. package/fixtures/cases/email-format/library/deals/renewal.md +49 -24
  158. package/fixtures/cases/email-format/schema.yaml +10 -11
  159. package/fixtures/cases/equal-labels/expected.json +5 -0
  160. package/fixtures/cases/equal-labels/schema.yaml +4 -0
  161. package/fixtures/cases/fenced-link-definition/library/item.md +1 -1
  162. package/fixtures/cases/fenced-link-definition/schema.yaml +2 -3
  163. package/fixtures/cases/field-enum/expected.json +2 -1
  164. package/fixtures/cases/field-enum/library/item.md +2 -2
  165. package/fixtures/cases/field-enum/schema.yaml +3 -4
  166. package/fixtures/cases/integer-field/expected.json +2 -1
  167. package/fixtures/cases/integer-field/library/companies/acme.md +1 -1
  168. package/fixtures/cases/integer-field/library/deals/renewal.md +49 -24
  169. package/fixtures/cases/integer-field/schema.yaml +10 -11
  170. package/fixtures/cases/json-schema-constructs/library/companies/acme.md +1 -1
  171. package/fixtures/cases/json-schema-constructs/library/deals/renewal.md +49 -24
  172. package/fixtures/cases/json-schema-constructs/schema.yaml +10 -11
  173. package/fixtures/cases/labels-in-the-rooms-language/expected.json +1 -0
  174. package/fixtures/cases/labels-in-the-rooms-language/library/deals/atlas.md +7 -0
  175. package/fixtures/cases/labels-in-the-rooms-language/schema.yaml +9 -0
  176. package/fixtures/cases/lazy-list-item/expected.json +3 -0
  177. package/fixtures/cases/lazy-list-item/library/item.md +10 -0
  178. package/fixtures/cases/lazy-list-item/schema.yaml +3 -0
  179. package/fixtures/cases/link-into-a-reserved-name/expected.json +5 -0
  180. package/fixtures/cases/link-into-a-reserved-name/library/notes/a.md +6 -0
  181. package/fixtures/cases/link-into-a-reserved-name/schema.yaml +3 -0
  182. package/fixtures/cases/link-into-a-reserved-name-from-an-untyped-document/expected.json +5 -0
  183. package/fixtures/cases/link-into-a-reserved-name-from-an-untyped-document/library/notes/b.md +5 -0
  184. package/fixtures/cases/list-item-enum/expected.json +7 -0
  185. package/fixtures/cases/list-item-enum/library/task.md +7 -0
  186. package/fixtures/cases/list-item-enum/schema.yaml +3 -0
  187. package/fixtures/cases/list-item-kind/context.json +1 -0
  188. package/fixtures/cases/list-item-kind/expected.json +7 -0
  189. package/fixtures/cases/list-item-kind/library/task.md +6 -0
  190. package/fixtures/cases/list-item-kind/schema.yaml +3 -0
  191. package/fixtures/cases/list-items/context.json +1 -0
  192. package/fixtures/cases/list-items/expected.json +1 -0
  193. package/fixtures/cases/list-items/library/page.md +26 -0
  194. package/fixtures/cases/list-items/schema.yaml +10 -0
  195. package/fixtures/cases/list-of-objects-closed/expected.json +2 -1
  196. package/fixtures/cases/list-of-objects-closed/library/companies/acme.md +1 -1
  197. package/fixtures/cases/list-of-objects-closed/library/deals/renewal.md +49 -25
  198. package/fixtures/cases/list-of-objects-closed/schema.yaml +10 -11
  199. package/fixtures/cases/list-of-objects-item/expected.json +2 -1
  200. package/fixtures/cases/list-of-objects-item/library/companies/acme.md +1 -1
  201. package/fixtures/cases/list-of-objects-item/library/deals/renewal.md +49 -24
  202. package/fixtures/cases/list-of-objects-item/schema.yaml +10 -11
  203. package/fixtures/cases/list-of-objects-reference/expected.json +2 -1
  204. package/fixtures/cases/list-of-objects-reference/library/companies/acme.md +1 -1
  205. package/fixtures/cases/list-of-objects-reference/library/deals/renewal.md +12 -9
  206. package/fixtures/cases/list-of-objects-reference/library/places/depot.md +1 -1
  207. package/fixtures/cases/list-of-objects-reference/library/products/seats.md +1 -1
  208. package/fixtures/cases/list-of-objects-reference/library/products/support.md +1 -1
  209. package/fixtures/cases/list-reference-path/context.json +1 -0
  210. package/fixtures/cases/list-reference-path/expected.json +7 -0
  211. package/fixtures/cases/list-reference-path/library/page.md +5 -0
  212. package/fixtures/cases/list-reference-path/schema.yaml +3 -0
  213. package/fixtures/cases/list-reference-type/context.json +1 -0
  214. package/fixtures/cases/list-reference-type/expected.json +7 -0
  215. package/fixtures/cases/list-reference-type/library/page.md +6 -0
  216. package/fixtures/cases/list-reference-type/schema.yaml +3 -0
  217. package/fixtures/cases/list-size/expected.json +2 -1
  218. package/fixtures/cases/list-size/library/companies/acme.md +1 -1
  219. package/fixtures/cases/list-size/library/deals/renewal.md +51 -24
  220. package/fixtures/cases/list-size/schema.yaml +10 -11
  221. package/fixtures/cases/long-value-past-six-levels/context.json +1 -0
  222. package/fixtures/cases/long-value-past-six-levels/expected.json +5 -0
  223. package/fixtures/cases/long-value-past-six-levels/schema.yaml +15 -0
  224. package/fixtures/cases/malformed-list/context.json +1 -0
  225. package/fixtures/cases/malformed-list/expected.json +7 -0
  226. package/fixtures/cases/{structured-section → malformed-list}/library/item.md +1 -1
  227. package/fixtures/cases/malformed-list/schema.yaml +6 -0
  228. package/fixtures/cases/member-document/library/people/ana.md +2 -2
  229. package/fixtures/cases/member-on-an-untyped-document/context.json +1 -0
  230. package/fixtures/cases/member-on-an-untyped-document/expected.json +6 -0
  231. package/fixtures/cases/member-on-an-untyped-document/library/note.md +4 -0
  232. package/fixtures/cases/member-on-another-type/context.json +1 -0
  233. package/fixtures/cases/member-on-another-type/expected.json +6 -0
  234. package/fixtures/cases/member-on-another-type/library/note.md +4 -0
  235. package/fixtures/cases/member-on-another-type/schema.yaml +7 -0
  236. package/fixtures/cases/missing-required-field/library/item.md +1 -1
  237. package/fixtures/cases/missing-required-field/schema.yaml +3 -4
  238. package/fixtures/cases/misspelled-key/expected.json +2 -1
  239. package/fixtures/cases/misspelled-key/library/companies/acme.md +1 -1
  240. package/fixtures/cases/misspelled-key/library/deals/renewal.md +50 -25
  241. package/fixtures/cases/misspelled-key/schema.yaml +10 -11
  242. package/fixtures/cases/name-not-a-string/context.json +1 -0
  243. package/fixtures/cases/name-not-a-string/expected.json +5 -0
  244. package/fixtures/cases/name-not-a-string/schema.yaml +5 -0
  245. package/fixtures/cases/nested-defs/expected.json +2 -1
  246. package/fixtures/cases/nested-defs/library/deal.md +3 -3
  247. package/fixtures/cases/nested-object-reference/expected.json +2 -1
  248. package/fixtures/cases/nested-object-reference/library/companies/acme.md +1 -1
  249. package/fixtures/cases/nested-object-reference/library/deals/renewal.md +12 -9
  250. package/fixtures/cases/nested-object-reference/library/places/depot.md +1 -1
  251. package/fixtures/cases/nested-object-reference/library/products/seats.md +1 -1
  252. package/fixtures/cases/nested-object-reference/library/products/support.md +1 -1
  253. package/fixtures/cases/nested-reference/library/companies/acme.md +1 -1
  254. package/fixtures/cases/nested-reference/library/deals/renewal.md +13 -10
  255. package/fixtures/cases/nested-reference/library/places/depot.md +1 -1
  256. package/fixtures/cases/nested-reference/library/products/seats.md +1 -1
  257. package/fixtures/cases/nested-reference/library/products/support.md +1 -1
  258. package/fixtures/cases/nested-required-field/expected.json +2 -1
  259. package/fixtures/cases/nested-required-field/library/companies/acme.md +1 -1
  260. package/fixtures/cases/nested-required-field/library/deals/renewal.md +48 -23
  261. package/fixtures/cases/nested-required-field/schema.yaml +10 -11
  262. package/fixtures/cases/numeric-range/expected.json +2 -1
  263. package/fixtures/cases/numeric-range/library/companies/acme.md +1 -1
  264. package/fixtures/cases/numeric-range/library/deals/renewal.md +49 -24
  265. package/fixtures/cases/numeric-range/schema.yaml +10 -11
  266. package/fixtures/cases/one-key-two-labels/context.json +1 -0
  267. package/fixtures/cases/one-key-two-labels/expected.json +5 -0
  268. package/fixtures/cases/one-key-two-labels/schema.yaml +5 -0
  269. package/fixtures/cases/one-key-two-types/context.json +1 -0
  270. package/fixtures/cases/one-key-two-types/expected.json +5 -0
  271. package/fixtures/cases/one-key-two-types/schema.yaml +4 -0
  272. package/fixtures/cases/one-of-variant/expected.json +2 -1
  273. package/fixtures/cases/one-of-variant/library/companies/acme.md +1 -1
  274. package/fixtures/cases/one-of-variant/library/deals/renewal.md +49 -24
  275. package/fixtures/cases/one-of-variant/schema.yaml +10 -11
  276. package/fixtures/cases/other-room-reference/expected.json +2 -1
  277. package/fixtures/cases/other-room-reference/library/companies/acme.md +1 -1
  278. package/fixtures/cases/other-room-reference/library/deals/renewal.md +12 -9
  279. package/fixtures/cases/other-room-reference/library/places/depot.md +1 -1
  280. package/fixtures/cases/other-room-reference/library/products/seats.md +1 -1
  281. package/fixtures/cases/other-room-reference/library/products/support.md +1 -1
  282. package/fixtures/cases/prototype-field/expected.json +2 -1
  283. package/fixtures/cases/prototype-field/library/item.md +2 -2
  284. package/fixtures/cases/prototype-field/schema.yaml +2 -3
  285. package/fixtures/cases/reference-into-a-reserved-name/context.json +1 -0
  286. package/fixtures/cases/reference-into-a-reserved-name/expected.json +7 -0
  287. package/fixtures/cases/reference-into-a-reserved-name/library/notes/a.md +4 -0
  288. package/fixtures/cases/reference-into-a-reserved-name/library/settings/brief.md +1 -0
  289. package/fixtures/cases/reference-into-a-reserved-name/schema.yaml +3 -0
  290. package/fixtures/cases/referenced-missing-file/library/a.md +2 -2
  291. package/fixtures/cases/referenced-missing-file/library/b.md +2 -2
  292. package/fixtures/cases/referenced-missing-file/schema.yaml +3 -4
  293. package/fixtures/cases/room-md-declares-a-type/context.json +1 -0
  294. package/fixtures/cases/room-md-declares-a-type/expected.json +6 -0
  295. package/fixtures/cases/room-md-declares-a-type/library/ROOM.md +5 -0
  296. package/fixtures/cases/sections-keyword-refused/context.json +1 -0
  297. package/fixtures/cases/sections-keyword-refused/expected.json +5 -0
  298. package/fixtures/cases/{structured-section → sections-keyword-refused}/schema.yaml +1 -2
  299. package/fixtures/cases/shortcut-reference-link/library/item.md +1 -1
  300. package/fixtures/cases/shortcut-reference-link/schema.yaml +2 -3
  301. package/fixtures/cases/string-length/expected.json +2 -1
  302. package/fixtures/cases/string-length/library/companies/acme.md +1 -1
  303. package/fixtures/cases/string-length/library/deals/renewal.md +49 -24
  304. package/fixtures/cases/string-length/schema.yaml +10 -11
  305. package/fixtures/cases/submission-keys/library/notes/visitor.md +2 -2
  306. package/fixtures/cases/text-field-kind/expected.json +1 -4
  307. package/fixtures/cases/text-field-kind/library/page.md +1 -1
  308. package/fixtures/cases/thematic-break-ends-the-values/context.json +1 -0
  309. package/fixtures/cases/thematic-break-ends-the-values/expected.json +1 -0
  310. package/fixtures/cases/thematic-break-ends-the-values/library/item.md +10 -0
  311. package/fixtures/cases/thematic-break-ends-the-values/schema.yaml +3 -0
  312. package/fixtures/cases/typed-path-names-another-type/context.json +11 -0
  313. package/fixtures/cases/typed-path-names-another-type/expected.json +6 -0
  314. package/fixtures/cases/typed-path-names-another-type/library/settings/prefs/one.md +3 -0
  315. package/fixtures/cases/typed-path-names-another-type/schema.yaml +6 -0
  316. package/fixtures/cases/typed-path-names-its-type/context.json +11 -0
  317. package/fixtures/cases/typed-path-names-its-type/expected.json +3 -0
  318. package/fixtures/cases/typed-path-names-its-type/library/settings/prefs/deeper/two.md +1 -0
  319. package/fixtures/cases/typed-path-names-its-type/library/settings/prefs/one.md +4 -0
  320. package/fixtures/cases/typed-path-names-its-type/schema.yaml +6 -0
  321. package/fixtures/cases/typed-path-names-no-type/context.json +11 -0
  322. package/fixtures/cases/typed-path-names-no-type/expected.json +6 -0
  323. package/fixtures/cases/typed-path-names-no-type/library/settings/prefs/one.md +1 -0
  324. package/fixtures/cases/typed-path-names-no-type/schema.yaml +6 -0
  325. package/fixtures/cases/types-folder-content/library/types/task.md +1 -1
  326. package/fixtures/cases/undeclared-field/expected.json +2 -1
  327. package/fixtures/cases/undeclared-field/library/item.md +2 -2
  328. package/fixtures/cases/undeclared-field/schema.yaml +2 -3
  329. package/fixtures/cases/unevaluated-items-closed/expected.json +2 -1
  330. package/fixtures/cases/unevaluated-items-closed/library/trip.md +13 -3
  331. package/fixtures/cases/unnamed-typed-path-checks-its-fields/context.json +11 -0
  332. package/fixtures/cases/unnamed-typed-path-checks-its-fields/expected.json +6 -0
  333. package/fixtures/cases/unnamed-typed-path-checks-its-fields/library/rooms/team/tasks/plan.md +5 -0
  334. package/fixtures/cases/unnamed-typed-path-checks-its-fields/schema.yaml +5 -0
  335. package/fixtures/cases/unnamed-typed-path-names-a-type/context.json +11 -0
  336. package/fixtures/cases/unnamed-typed-path-names-a-type/expected.json +6 -0
  337. package/fixtures/cases/unnamed-typed-path-names-a-type/library/rooms/team/tasks/plan.md +7 -0
  338. package/fixtures/cases/unnamed-typed-path-names-a-type/schema.yaml +5 -0
  339. package/fixtures/cases/unnamed-typed-path-reads-its-type/context.json +11 -0
  340. package/fixtures/cases/unnamed-typed-path-reads-its-type/expected.json +3 -0
  341. package/fixtures/cases/unnamed-typed-path-reads-its-type/library/rooms/team/plan.md +1 -0
  342. package/fixtures/cases/unnamed-typed-path-reads-its-type/library/rooms/team/tasks/plan.md +6 -0
  343. package/fixtures/cases/unnamed-typed-path-reads-its-type/schema.yaml +5 -0
  344. package/fixtures/cases/unnamed-typed-path-without-a-body/context.json +11 -0
  345. package/fixtures/cases/unnamed-typed-path-without-a-body/expected.json +5 -0
  346. package/fixtures/cases/unnamed-typed-path-without-a-body/library/rooms/team/tasks/plan.md +5 -0
  347. package/fixtures/cases/unnamed-typed-path-without-a-body/schema.yaml +5 -0
  348. package/fixtures/cases/unresolved-link/library/item.md +1 -1
  349. package/fixtures/cases/unresolved-link/schema.yaml +2 -3
  350. package/fixtures/cases/valid-typed-document/library/people/ada.md +1 -1
  351. package/fixtures/cases/valid-typed-document/library/tasks/one.md +11 -11
  352. package/fixtures/cases/valid-typed-document/schema.yaml +5 -6
  353. package/fixtures/division.json +111 -66
  354. package/fixtures/forms.json +347 -0
  355. package/fixtures/preamble.json +26 -5
  356. package/fixtures/projection.json +121 -18
  357. package/fixtures/queries.json +964 -0
  358. package/package.json +16 -2
  359. package/dist/blocks.d.ts +0 -11
  360. package/dist/blocks.d.ts.map +0 -1
  361. package/dist/blocks.js +0 -76
  362. package/dist/condition.d.ts +0 -149
  363. package/dist/condition.d.ts.map +0 -1
  364. package/dist/condition.js +0 -500
  365. package/dist/links.d.ts +0 -27
  366. package/dist/links.d.ts.map +0 -1
  367. package/dist/links.js +0 -774
  368. package/dist/profile.d.ts +0 -6
  369. package/dist/profile.d.ts.map +0 -1
  370. package/dist/profile.js +0 -5
  371. package/dist/sections.d.ts +0 -11
  372. package/dist/sections.d.ts.map +0 -1
  373. package/dist/sections.js +0 -57
  374. package/fixtures/cases/missing-section-item-kind/expected.json +0 -5
  375. package/fixtures/cases/missing-section-item-kind/schema.yaml +0 -6
  376. package/fixtures/cases/null-refused/expected.json +0 -6
  377. package/fixtures/cases/null-refused/library/companies/acme.md +0 -4
  378. package/fixtures/cases/null-refused/library/deals/renewal.md +0 -31
  379. package/fixtures/cases/null-refused/schema.yaml +0 -56
  380. package/fixtures/cases/open-map-value/expected.json +0 -6
  381. package/fixtures/cases/open-map-value/library/companies/acme.md +0 -4
  382. package/fixtures/cases/open-map-value/library/deals/renewal.md +0 -31
  383. package/fixtures/cases/open-map-value/schema.yaml +0 -56
  384. package/fixtures/cases/section-item-enum/expected.json +0 -6
  385. package/fixtures/cases/section-item-enum/library/task.md +0 -8
  386. package/fixtures/cases/section-item-enum/schema.yaml +0 -3
  387. package/fixtures/cases/section-item-kind/expected.json +0 -6
  388. package/fixtures/cases/section-item-kind/library/task.md +0 -8
  389. package/fixtures/cases/section-item-kind/schema.yaml +0 -3
  390. package/fixtures/cases/section-items/library/page.md +0 -42
  391. package/fixtures/cases/section-items/schema.yaml +0 -10
  392. package/fixtures/cases/section-reference-path/expected.json +0 -6
  393. package/fixtures/cases/section-reference-path/library/page.md +0 -7
  394. package/fixtures/cases/section-reference-path/schema.yaml +0 -3
  395. package/fixtures/cases/section-reference-type/expected.json +0 -6
  396. package/fixtures/cases/section-reference-type/library/page.md +0 -7
  397. package/fixtures/cases/section-reference-type/schema.yaml +0 -3
  398. package/fixtures/cases/structured-section/expected.json +0 -6
  399. /package/fixtures/cases/{missing-section-item-kind → conditional-long-text}/context.json +0 -0
  400. /package/fixtures/cases/{null-refused → cross-room-link}/context.json +0 -0
  401. /package/fixtures/cases/{section-items → cross-room-link}/expected.json +0 -0
  402. /package/fixtures/cases/{open-map-value → cross-room-reference}/context.json +0 -0
  403. /package/fixtures/cases/{section-item-enum → equal-labels}/context.json +0 -0
  404. /package/fixtures/cases/{section-item-kind → labels-in-the-rooms-language}/context.json +0 -0
  405. /package/fixtures/cases/{section-items → lazy-list-item}/context.json +0 -0
  406. /package/fixtures/cases/{section-reference-type → link-into-a-reserved-name}/context.json +0 -0
  407. /package/fixtures/cases/{section-reference-path → link-into-a-reserved-name-from-an-untyped-document}/context.json +0 -0
  408. /package/fixtures/cases/{structured-section → list-item-enum}/context.json +0 -0
  409. /package/fixtures/cases/{section-items → list-items}/library/other.md +0 -0
  410. /package/fixtures/cases/{section-reference-path → list-reference-path}/library/other.md +0 -0
  411. /package/fixtures/cases/{section-reference-type → list-reference-type}/library/note.md +0 -0
@@ -0,0 +1,347 @@
1
+ {
2
+ "schema": "card:\n properties:\n name: { type: string, title: Name }\n status: { enum: [open, done], title: Status }\n count: { type: integer }\n done: { type: boolean, title: Done }\n owner: { type: string, reference: person, title: Owner }\n tags: { type: array, items: { type: string }, title: Tags }\n address:\n title: Address\n type: object\n properties:\n city: { type: string, title: City }\n zip: { type: string, title: ZIP }\n summary: { type: string, title: Summary }\n notes: { type: string, contentMediaType: text/markdown, title: Notes }\n lines:\n title: Lines\n type: array\n items:\n type: object\n properties:\n product: { type: string, title: Product }\n quantity: { type: integer, title: Quantity }\n gift: { type: boolean, title: Gift }\n steps:\n title: Steps\n type: array\n items:\n type: object\n properties:\n name: { type: string, title: Name }\n detail: { type: string, contentMediaType: text/markdown, title: Detail }\n values: { title: Values, type: object, additionalProperties: { type: string } }\n condition: { title: Condition, type: object, additionalProperties: true }\nperson:\n properties:\n name: { type: string, title: Name }\nmember-card:\n member_document: true\n properties:\n name: { type: string }\nmessage:\n properties:\n direction: { enum: [in, out], title: Direction }\n sent_at: { type: string, format: date-time, title: Sent at }\n",
3
+ "names": {
4
+ "../people/alice.md": "Alice"
5
+ },
6
+ "cases": [
7
+ {
8
+ "name": "every form, written in its one spelling",
9
+ "type": "card",
10
+ "source": "---\ntype: card\n---\n# Ship it\n\n- **Status**: open\n- **count**: 3\n- [x] Done\n- **Owner**: [Alice](../people/alice.md)\n- **Tags**:\n - core\n - docs\n- **Address**:\n - **City**: Paris\n - **ZIP**: 75001\n- **Summary**: One line.\n- **Values**:\n - **colour**: blue\n\n## Notes\n\nSome *notes* with [a link](../notes/more.md).\n\n### Detail of the notes\n\nKept under the notes.\n\n## Lines\n\n| Product | Quantity | Gift |\n| --- | --- | --- |\n| seats | 2 | [x] |\n| support | 1 | [ ] |\n\n## Steps\n\n### Draft\n\n#### Detail\n\nWrite it.\n\n### Review\n\n## Condition\n\n```json\n{\n \"changes\": {\n \"field\": \"/status\"\n },\n \"limit\": 3,\n \"flag\": true,\n \"none\": null\n}\n```\n",
11
+ "value": {
12
+ "type": "card",
13
+ "name": "Ship it",
14
+ "status": "open",
15
+ "count": 3,
16
+ "done": true,
17
+ "owner": "../people/alice.md",
18
+ "tags": [
19
+ "core",
20
+ "docs"
21
+ ],
22
+ "address": {
23
+ "city": "Paris",
24
+ "zip": "75001"
25
+ },
26
+ "summary": "One line.",
27
+ "notes": "Some *notes* with [a link](../notes/more.md).\n\n### Detail of the notes\n\nKept under the notes.",
28
+ "lines": [
29
+ {
30
+ "product": "seats",
31
+ "quantity": 2,
32
+ "gift": true
33
+ },
34
+ {
35
+ "product": "support",
36
+ "quantity": 1,
37
+ "gift": false
38
+ }
39
+ ],
40
+ "steps": [
41
+ {
42
+ "name": "Draft",
43
+ "detail": "Write it."
44
+ },
45
+ {
46
+ "name": "Review"
47
+ }
48
+ ],
49
+ "values": {
50
+ "colour": "blue"
51
+ },
52
+ "condition": {
53
+ "changes": {
54
+ "field": "/status"
55
+ },
56
+ "limit": 3,
57
+ "flag": true,
58
+ "none": null
59
+ }
60
+ },
61
+ "written": true,
62
+ "ranges": {
63
+ "/name": "# Ship it\n",
64
+ "/status": "- **Status**: open\n",
65
+ "/done": "- [x] Done\n",
66
+ "/address": "- **Address**:\n - **City**: Paris\n - **ZIP**: 75001\n",
67
+ "/address/zip": " - **ZIP**: 75001\n",
68
+ "/lines/1/quantity": "1",
69
+ "/condition": "## Condition\n\n```json\n{\n \"changes\": {\n \"field\": \"/status\"\n },\n \"limit\": 3,\n \"flag\": true,\n \"none\": null\n}\n```\n"
70
+ },
71
+ "after": "\n## Notes"
72
+ },
73
+ {
74
+ "name": "the bullet, bold and colon spellings GitHub reads alike, and a setext name, read alike",
75
+ "type": "card",
76
+ "source": "---\ntype: card\n---\nShip it\n=======\n\n* __Status:__ open\n* **count** : 3\n* [X] Done\n* **Owner**:[Alice](../people/alice.md)\n* **Tags**:\n + core\n + docs\n* **Address**:\n * __City__: Paris\n * **ZIP:** 75001\n* **Summary**:One line.\n",
77
+ "value": {
78
+ "type": "card",
79
+ "name": "Ship it",
80
+ "status": "open",
81
+ "count": 3,
82
+ "done": true,
83
+ "owner": "../people/alice.md",
84
+ "tags": [
85
+ "core",
86
+ "docs"
87
+ ],
88
+ "address": {
89
+ "city": "Paris",
90
+ "zip": "75001"
91
+ },
92
+ "summary": "One line."
93
+ }
94
+ },
95
+ {
96
+ "name": "free text around the values, a field heading among free sections and a thematic break",
97
+ "type": "card",
98
+ "source": "---\ntype: card\n---\n# Plan\n\n- **Status**: open\n\nAn opening paragraph, mine.\n\n## Log\n\n- 2026-11-01 started\n\n## Notes\n\nField text.\n\n## Later\n\nMore of mine.\n\n---\n\n- **Status**: done\n\n## Notes\n\nafter the break\n",
99
+ "value": {
100
+ "type": "card",
101
+ "name": "Plan",
102
+ "status": "open",
103
+ "notes": "Field text."
104
+ },
105
+ "preamble": "An opening paragraph, mine.\n\n",
106
+ "sections": {
107
+ "Log": "\n- 2026-11-01 started\n\n",
108
+ "Later": "\nMore of mine.\n\n",
109
+ "Notes": "\nafter the break\n"
110
+ },
111
+ "text": "An opening paragraph, mine.\n\n## Log\n\n- 2026-11-01 started\n\n## Later\n\nMore of mine.\n\n\n- **Status**: done\n\n## Notes\n\nafter the break\n"
112
+ },
113
+ {
114
+ "name": "House's keys read from the frontmatter as fields of the value",
115
+ "type": "member-card",
116
+ "source": "---\ntype: member-card\nmember: ada@example.com\nsite: shop\nsubmitted: 2026-11-05T10:00:00Z\n---\n# Ada\n",
117
+ "value": {
118
+ "type": "member-card",
119
+ "member": "ada@example.com",
120
+ "site": "shop",
121
+ "submitted": "2026-11-05T10:00:00Z",
122
+ "name": "Ada"
123
+ }
124
+ },
125
+ {
126
+ "name": "a message whose text, after the break, begins with a value line and holds a label's heading",
127
+ "type": "message",
128
+ "source": "---\ntype: message\n---\n- **Direction**: in\n- **Sent at**: 2026-11-05T10:00:00Z\n\n---\n\n- **Direction**: out\n\n## Sent at\n\nTomorrow.\n",
129
+ "value": {
130
+ "type": "message",
131
+ "direction": "in",
132
+ "sent_at": "2026-11-05T10:00:00Z"
133
+ },
134
+ "text": "\n- **Direction**: out\n\n## Sent at\n\nTomorrow.\n",
135
+ "written": true
136
+ },
137
+ {
138
+ "name": "values that would start block syntax, a closing hash and a pipe in a cell, escaped",
139
+ "type": "card",
140
+ "source": "---\ntype: card\n---\n# C \\#\n\n- **Tags**:\n - \\# hash\n - \\- dash\n - \\+ plus\n - 1\\. one\n - 2\\) two\n - \\[x] box\n - \\> quote\n - \\--- rule\n - \\=== under\n - \\<b>kept</b>\n - back\\slash\n\n## Lines\n\n| Product | Quantity |\n| --- | --- |\n| a \\| b | 1 |\n",
141
+ "value": {
142
+ "type": "card",
143
+ "name": "C #",
144
+ "tags": [
145
+ "# hash",
146
+ "- dash",
147
+ "+ plus",
148
+ "1. one",
149
+ "2) two",
150
+ "[x] box",
151
+ "> quote",
152
+ "--- rule",
153
+ "=== under",
154
+ "<b>kept</b>",
155
+ "back\\slash"
156
+ ],
157
+ "lines": [
158
+ {
159
+ "product": "a | b",
160
+ "quantity": 1
161
+ }
162
+ ]
163
+ },
164
+ "written": true,
165
+ "rendered": {
166
+ "/tags": [
167
+ "# hash",
168
+ "- dash",
169
+ "+ plus",
170
+ "1. one",
171
+ "2) two",
172
+ "[x] box",
173
+ "> quote",
174
+ "--- rule",
175
+ "=== under",
176
+ "<b>kept</b>",
177
+ "back\\slash"
178
+ ],
179
+ "/name": "C #",
180
+ "/lines/0/product": "a | b"
181
+ }
182
+ }
183
+ ],
184
+ "refused": [
185
+ {
186
+ "name": "a value written twice",
187
+ "type": "card",
188
+ "source": "---\ntype: card\n---\n- **Status**: open\n- **Status**: done\n",
189
+ "refusal": {
190
+ "rule": "repeated-value",
191
+ "location": "/status",
192
+ "line": 5
193
+ }
194
+ },
195
+ {
196
+ "name": "a value written as a line and under its heading",
197
+ "type": "card",
198
+ "source": "---\ntype: card\n---\n- **Summary**: one\n\n## Summary\n\ntwo\n",
199
+ "refusal": {
200
+ "rule": "repeated-value",
201
+ "location": "/summary",
202
+ "line": 6
203
+ }
204
+ },
205
+ {
206
+ "name": "a value line naming no field of a closed object",
207
+ "type": "card",
208
+ "source": "---\ntype: card\n---\n- **Status**: open\n- **Stauts**: done\n",
209
+ "refusal": {
210
+ "rule": "unknown-label",
211
+ "location": "/Stauts",
212
+ "line": 5
213
+ }
214
+ },
215
+ {
216
+ "name": "a member line naming no field of its group",
217
+ "type": "card",
218
+ "source": "---\ntype: card\n---\n- **Address**:\n - **Town**: Paris\n",
219
+ "refusal": {
220
+ "rule": "unknown-label",
221
+ "location": "/address/Town",
222
+ "line": 5
223
+ }
224
+ },
225
+ {
226
+ "name": "a number that does not read",
227
+ "type": "card",
228
+ "source": "---\ntype: card\n---\n# Plan\n\n- **count**: three\n",
229
+ "refusal": {
230
+ "rule": "malformed-value",
231
+ "location": "/count",
232
+ "line": 6
233
+ }
234
+ },
235
+ {
236
+ "name": "yes or no written as a word, not a checkbox",
237
+ "type": "card",
238
+ "source": "---\ntype: card\n---\n- **Done**: yes\n",
239
+ "refusal": {
240
+ "rule": "malformed-value",
241
+ "location": "/done",
242
+ "line": 4
243
+ }
244
+ },
245
+ {
246
+ "name": "a reference written as a bare path",
247
+ "type": "card",
248
+ "source": "---\ntype: card\n---\n- **Owner**: ../people/alice.md\n",
249
+ "refusal": {
250
+ "rule": "malformed-value",
251
+ "location": "/owner",
252
+ "line": 4
253
+ }
254
+ },
255
+ {
256
+ "name": "a value left in the frontmatter",
257
+ "type": "card",
258
+ "source": "---\ntype: card\nstatus: open\n---\n# Plan\n",
259
+ "refusal": {
260
+ "rule": "malformed-value",
261
+ "location": "/status",
262
+ "line": 3
263
+ }
264
+ },
265
+ {
266
+ "name": "a json block that does not parse",
267
+ "type": "card",
268
+ "source": "---\ntype: card\n---\n## Condition\n\n```json\n{\"changes\":\n```\n",
269
+ "refusal": {
270
+ "rule": "malformed-value",
271
+ "location": "/condition",
272
+ "line": 6
273
+ }
274
+ }
275
+ ],
276
+ "applied": [
277
+ {
278
+ "name": "a set value rewrites its own lines and nothing else",
279
+ "type": "card",
280
+ "source": "---\ntype: card\n---\n# Plan\n\n- **Status**: open\n\nAn opening paragraph, mine.\n\n## Log\n\n- 2026-11-01 started\n\n## Notes\n\nField text.\n\n## Later\n\nMore of mine.\n\n---\n\n- **Status**: done\n\n## Notes\n\nafter the break\n",
281
+ "changes": [
282
+ {
283
+ "kind": "field",
284
+ "name": "status",
285
+ "value": "done",
286
+ "prior": "open"
287
+ }
288
+ ],
289
+ "expected": "---\ntype: card\n---\n# Plan\n\n- **Status**: done\n\nAn opening paragraph, mine.\n\n## Log\n\n- 2026-11-01 started\n\n## Notes\n\nField text.\n\n## Later\n\nMore of mine.\n\n---\n\n- **Status**: done\n\n## Notes\n\nafter the break\n"
290
+ },
291
+ {
292
+ "name": "a value whose form changes moves to its heading",
293
+ "type": "card",
294
+ "source": "---\ntype: card\n---\n- **Status**: open\n- **Summary**: short\n\n## Notes\n\nKept.\n",
295
+ "changes": [
296
+ {
297
+ "kind": "field",
298
+ "name": "summary",
299
+ "value": "line one\nline two",
300
+ "prior": "short"
301
+ }
302
+ ],
303
+ "expected": "---\ntype: card\n---\n- **Status**: open\n\n## Summary\n\nline one\nline two\n\n## Notes\n\nKept.\n"
304
+ },
305
+ {
306
+ "name": "a new value goes in at its schema position",
307
+ "type": "card",
308
+ "source": "---\ntype: card\n---\n# Plan\n\n- **Status**: open\n- **Tags**:\n - core\n\n## Notes\n\nKept.\n",
309
+ "changes": [
310
+ {
311
+ "kind": "field",
312
+ "name": "count",
313
+ "value": 3
314
+ },
315
+ {
316
+ "kind": "field",
317
+ "name": "lines",
318
+ "value": [
319
+ {
320
+ "product": "seats",
321
+ "quantity": 2
322
+ }
323
+ ]
324
+ }
325
+ ],
326
+ "expected": "---\ntype: card\n---\n# Plan\n\n- **Status**: open\n- **count**: 3\n- **Tags**:\n - core\n\n## Notes\n\nKept.\n\n## Lines\n\n| Product | Quantity |\n| --- | --- |\n| seats | 2 |\n"
327
+ },
328
+ {
329
+ "name": "a removed value takes its lines with it",
330
+ "type": "card",
331
+ "source": "---\ntype: card\n---\n# Plan\n\n- **Status**: open\n- **count**: 3\n\n## Notes\n\nKept.\n",
332
+ "changes": [
333
+ {
334
+ "kind": "field",
335
+ "name": "count",
336
+ "prior": 3
337
+ },
338
+ {
339
+ "kind": "field",
340
+ "name": "notes",
341
+ "prior": "Kept."
342
+ }
343
+ ],
344
+ "expected": "---\ntype: card\n---\n# Plan\n\n- **Status**: open\n"
345
+ }
346
+ ]
347
+ }
@@ -77,12 +77,33 @@
77
77
  "expected": "---\ntype: note\n---\nPlain replacement.\n"
78
78
  },
79
79
  {
80
- "name": "existing section parser ignores other heading forms",
81
- "source": "# Title\n### Subheading\n> ## Quoted\n ## Indented\nSetext\n------\n\n## Actual ##\nKept.\n",
82
- "preamble": "# Title\n### Subheading\n> ## Quoted\n ## Indented\nSetext\n------\n\n",
80
+ "name": "quoted, indented-code and deeper headings stay in the preamble",
81
+ "source": "# Title\n### Subheading\n> ## Quoted\n ## Indented\n\n## Actual ##\nKept.\n",
82
+ "preamble": "# Title\n### Subheading\n> ## Quoted\n ## Indented\n\n",
83
83
  "value": "Intro.\n",
84
84
  "expected": "Intro.\n## Actual ##\nKept.\n"
85
85
  },
86
+ {
87
+ "name": "a setext heading opens a section",
88
+ "source": "Intro.\n\nBody\n------\nKept.\n",
89
+ "preamble": "Intro.\n\n",
90
+ "value": "New intro.\n\n",
91
+ "expected": "New intro.\n\nBody\n------\nKept.\n"
92
+ },
93
+ {
94
+ "name": "an indented or empty H2 opens a section",
95
+ "source": "Intro.\n ## Body\nKept.\n##\nMore.\n",
96
+ "preamble": "Intro.\n",
97
+ "value": "New intro.\n",
98
+ "expected": "New intro.\n ## Body\nKept.\n##\nMore.\n"
99
+ },
100
+ {
101
+ "name": "an HTML block hides a heading",
102
+ "source": "<!--\n## Hidden\n-->\n\n## Body\nKept.\n",
103
+ "preamble": "<!--\n## Hidden\n-->\n\n",
104
+ "value": "Intro.\n",
105
+ "expected": "Intro.\n## Body\nKept.\n"
106
+ },
86
107
  {
87
108
  "name": "Unicode and mixed newlines",
88
109
  "source": "---\r\ntype: note\r\n---\r\n🙂 Вступ\r\n\n## Body\nKept.\r\n",
@@ -99,9 +120,9 @@
99
120
  },
100
121
  {
101
122
  "name": "Runtime moved export link",
102
- "source": "---\ntype: note\ntitle: Filed note\n---\n\nFiled beside [the export](../data/export.csv).\n\n## Body\n\nThe destination above sits outside every section.\n",
123
+ "source": "---\ntype: note\n---\n\nFiled beside [the export](../data/export.csv).\n\n## Body\n\nThe destination above sits outside every section.\n",
103
124
  "preamble": "\nFiled beside [the export](../data/export.csv).\n\n",
104
125
  "value": "\nFiled beside [the export](../files/export.csv).\n\n",
105
- "expected": "---\ntype: note\ntitle: Filed note\n---\n\nFiled beside [the export](../files/export.csv).\n\n## Body\n\nThe destination above sits outside every section.\n"
126
+ "expected": "---\ntype: note\n---\n\nFiled beside [the export](../files/export.csv).\n\n## Body\n\nThe destination above sits outside every section.\n"
106
127
  }
107
128
  ]
@@ -1,5 +1,5 @@
1
1
  {
2
- "schema": "$defs:\n line: { type: string }\ntask:\n type: object\n properties:\n name: { type: string }\n aliases: { type: array, items: { type: string } }\n title: { type: string, pattern: '\\S' }\n status: { enum: [open, done] }\n owner: { type: string, reference: person }\n reviewers: { type: array, items: { type: string, reference: person } }\n due: { type: string, format: date }\n estimate: { type: number }\n labels: { type: array, items: { type: string, pattern: '^[a-z]+$' } }\n contact:\n type: object\n properties:\n note: { type: string }\n email: { type: string, format: email }\n notes: { type: object, additionalProperties: { type: string } }\n backup: { $ref: '#/$defs/line', format: email }\n memo: { type: [string, 'null'] }\n steps:\n type: array\n items:\n type: object\n properties:\n title: { type: string }\n done: { type: boolean }\n required: [name, title, status]\n sections:\n Description: { kind: text, required: true }\n Acceptance: { kind: list, items: { type: string, reference: person } }\n Checklist: { kind: list, items: { type: string } }\nperson: {}\n",
2
+ "schema": "$defs:\n line: { type: string }\ntask:\n type: object\n properties:\n name: { type: string }\n aliases: { type: array, items: { type: string } }\n title: { type: string, pattern: '\\S' }\n status: { enum: [open, done] }\n owner: { type: string, reference: person }\n reviewers: { type: array, items: { type: string, reference: person } }\n due: { type: string, format: date }\n estimate: { type: number }\n labels: { type: array, items: { type: string, pattern: '^[a-z]+$' } }\n contact:\n type: object\n properties:\n note: { type: string }\n email: { type: string, format: email }\n notes: { type: object, additionalProperties: { type: string } }\n backup: { $ref: '#/$defs/line', format: email }\n memo: { type: [string, 'null'] }\n steps:\n type: array\n items:\n type: object\n properties:\n title: { type: string }\n done: { type: boolean }\n description: { type: string, contentMediaType: text/markdown, minLength: 1, title: Description }\n acceptance: { type: array, items: { type: string, reference: person }, title: Acceptance }\n checklist: { type: array, items: { type: string }, title: Checklist }\n required: [name, title, status, description]\nperson: {}\n",
3
3
  "cases": [
4
4
  {
5
5
  "name": "any body keeps labels and leaves every unsupplied destination authored",
@@ -58,7 +58,7 @@
58
58
  {
59
59
  "name": "a typed Document projects its free-text field values as bare values and no other kind",
60
60
  "file": "tasks/four.md",
61
- "source": "---\ntype: task\nname: Ship the release\naliases: [\"Launch day\", Cutover]\ntitle: Ship it\nstatus: open\nowner: ../people/ana.md\ndue: 2026-09-30\nestimate: 3\nlabels: [core, urgent]\n---\n",
61
+ "source": "---\ntype: task\n---\n# Ship the release\n\n- **aliases**:\n - Launch day\n - Cutover\n- **title**: Ship it\n- **status**: open\n- **owner**: [Ana](../people/ana.md)\n- **due**: 2026-09-30\n- **estimate**: 3\n- **labels**:\n - core\n - urgent\n",
62
62
  "documentTargets": [],
63
63
  "definition": "task",
64
64
  "move": null,
@@ -70,7 +70,7 @@
70
70
  {
71
71
  "name": "a typed Document projects its prose at any depth in document order and leaves every filtered value out",
72
72
  "file": "tasks/twelve.md",
73
- "source": "---\ntype: task\nname: Ship the release\ntitle: Ship it\nstatus: open\nowner: ../people/ana.md\nreviewers: [../people/bo.md]\ndue: 2026-09-30\ncontact:\n note: Call before noon\n email: ana@example.com\nsteps:\n - title: Tag the build\n done: true\n - title: Announce it\n done: false\n---\n\n## Description\n\nCut the release.\n\n## Acceptance\n\n- [Ana](../people/ana.md)\n\n## Checklist\n\n- Notes written\n",
73
+ "source": "---\ntype: task\n---\n# Ship the release\n\n- **title**: Ship it\n- **status**: open\n- **owner**: [Ana](../people/ana.md)\n- **reviewers**:\n - [Bo](../people/bo.md)\n- **due**: 2026-09-30\n- **contact**:\n - **note**: Call before noon\n - **email**: ana@example.com\n- **Acceptance**:\n - [Ana](../people/ana.md)\n- **Checklist**:\n - Notes written\n\n## steps\n\n| title | done |\n| --- | --- |\n| Tag the build | [x] |\n| Announce it | [ ] |\n\n## Description\n\nCut the release.\n",
74
74
  "documentTargets": [],
75
75
  "definition": "task",
76
76
  "move": null,
@@ -80,13 +80,13 @@
80
80
  },
81
81
  "expected": {
82
82
  "ok": true,
83
- "text": "Ship the release\n\nCall before noon\n\nTag the build\n\nAnnounce it\n\n\n## Description\n\nCut the release.\n\n## Checklist\n\n- Notes written\n"
83
+ "text": "Ship the release\n\nCall before noon\n\nNotes written\n\nTag the build\n\nAnnounce it\n\nCut the release.\n"
84
84
  }
85
85
  },
86
86
  {
87
87
  "name": "a typed Document projects the prose of an open map and a nullable string and leaves a formatted $ref out",
88
88
  "file": "tasks/launch.md",
89
- "source": "---\ntype: task\nname: Plan the launch\ntitle: Plan\nstatus: open\nnotes:\n monday: Book the room\n friday: Send the invite\nbackup: ana@example.com\nmemo: Bring slides\n---\n\n## Description\n\nLaunch.\n",
89
+ "source": "---\ntype: task\n---\n# Plan the launch\n\n- **title**: Plan\n- **status**: open\n- **notes**:\n - **monday**: Book the room\n - **friday**: Send the invite\n- **backup**: ana@example.com\n\n## memo\n\n```json\n\"Bring slides\"\n```\n\n## Description\n\nLaunch.\n",
90
90
  "documentTargets": [],
91
91
  "definition": "task",
92
92
  "move": null,
@@ -96,13 +96,13 @@
96
96
  },
97
97
  "expected": {
98
98
  "ok": true,
99
- "text": "Plan the launch\n\nBook the room\n\nSend the invite\n\nBring slides\n\n\n## Description\n\nLaunch.\n"
99
+ "text": "Plan the launch\n\nBook the room\n\nSend the invite\n\nBring slides\n\nLaunch.\n"
100
100
  }
101
101
  },
102
102
  {
103
- "name": "a typed Document projects its preamble and every section its type does not declare as structure",
103
+ "name": "a typed Document projects its preamble, its long values without their labels and every free section, and leaves its references out",
104
104
  "file": "tasks/one.md",
105
- "source": "---\ntype: task\nname: Shipping the release\ntitle: Ship it\nstatus: open\nowner: ../people/ana.md\n---\n\nPreamble prose that mentions [the plan](../plans/q3.md).\n\n## Description\n\nFollow [the plan][plan] and [the plan][plan] again, then [read it][].\n\n[plan]: ../plans/q3.md \"Plan\"\n[read it]: ../plans/q3.md\n\n## Acceptance\n\n- [the plan](../plans/q3.md) is linked\n\n## Checklist\n\n- [the plan](../plans/q3.md) is read\n\n## Notes\n\nUndeclared prose about [the plan](../plans/q3.md).\n",
105
+ "source": "---\ntype: task\n---\n# Shipping the release\n\n- **title**: Ship it\n- **status**: open\n- **owner**: [Ana](../people/ana.md)\n- **Acceptance**:\n - [Ana](../people/ana.md)\n- **Checklist**:\n - [the plan](../plans/q3.md) is read\n\nPreamble prose that mentions [the plan](../plans/q3.md).\n\n## Description\n\nFollow [the plan][plan] and [the plan][plan] again, then [read it][].\n\n[plan]: ../plans/q3.md \"Plan\"\n[read it]: ../plans/q3.md\n\n## Notes\n\nUndeclared prose about [the plan](../plans/q3.md).\n",
106
106
  "documentTargets": [
107
107
  "plans/q3.md",
108
108
  "plans/2026-q3.md"
@@ -117,18 +117,18 @@
117
117
  "to": "[the roadmap][plan] and",
118
118
  "expected": {
119
119
  "ok": true,
120
- "text": "Shipping the release\n\n\nPreamble prose that mentions the plan.\n\n## Description\n\nFollow the roadmap and the plan again, then read it.\n\n\n## Checklist\n\n- the plan is read\n\n## Notes\n\nUndeclared prose about the plan.\n"
120
+ "text": "Shipping the release\n\nthe plan is read\n\nPreamble prose that mentions the plan.\n\nFollow the roadmap and the plan again, then read it.\n\n\n## Notes\n\nUndeclared prose about the plan.\n"
121
121
  }
122
122
  },
123
123
  "expected": {
124
124
  "ok": true,
125
- "text": "Shipping the release\n\n\nPreamble prose that mentions the plan.\n\n## Description\n\nFollow the plan and the plan again, then read it.\n\n\n## Checklist\n\n- the plan is read\n\n## Notes\n\nUndeclared prose about the plan.\n"
125
+ "text": "Shipping the release\n\nthe plan is read\n\nPreamble prose that mentions the plan.\n\nFollow the plan and the plan again, then read it.\n\n\n## Notes\n\nUndeclared prose about the plan.\n"
126
126
  }
127
127
  },
128
128
  {
129
129
  "name": "a link definition in another section resolves its use and leaves the projection",
130
130
  "file": "tasks/two.md",
131
- "source": "---\ntype: task\ntitle: Ship it\nstatus: open\n---\n\n## Description\n\nFollow [the plan][plan].\n\n## Notes\n\n[plan]: ../plans/q3.md\n",
131
+ "source": "---\ntype: task\n---\n- **title**: Ship it\n- **status**: open\n\n## Description\n\nFollow [the plan][plan].\n\n## Notes\n\n[plan]: ../plans/q3.md\n",
132
132
  "documentTargets": [
133
133
  "plans/q3.md",
134
134
  "plans/2026-q3.md"
@@ -140,13 +140,13 @@
140
140
  },
141
141
  "expected": {
142
142
  "ok": true,
143
- "text": "\n## Description\n\nFollow the plan.\n\n## Notes\n\n"
143
+ "text": "Follow the plan.\n\n## Notes\n\n"
144
144
  }
145
145
  },
146
146
  {
147
- "name": "every occurrence of a declared free-text section is projected",
147
+ "name": "a heading that names a field after a thematic break is free text and projected with it",
148
148
  "file": "tasks/three.md",
149
- "source": "---\ntype: task\ntitle: Ship it\nstatus: open\n---\n\n## Description\n\nFirst [plan](../plans/q3.md).\n\n## Description\n\nSecond note.\n",
149
+ "source": "---\ntype: task\n---\n- **title**: Ship it\n- **status**: open\n\n## Description\n\nFirst [plan](../plans/q3.md).\n\n---\n\n## Description\n\nSecond note.\n",
150
150
  "documentTargets": [
151
151
  "plans/q3.md",
152
152
  "plans/2026-q3.md"
@@ -158,13 +158,13 @@
158
158
  },
159
159
  "expected": {
160
160
  "ok": true,
161
- "text": "\n## Description\n\nFirst plan.\n\n## Description\n\nSecond note.\n"
161
+ "text": "First plan.\n\n\n## Description\n\nSecond note.\n"
162
162
  }
163
163
  },
164
164
  {
165
165
  "name": "a declared type the caller does not supply is refused",
166
166
  "file": "tasks/one.md",
167
- "source": "---\ntype: task\nname: Shipping the release\ntitle: Ship it\nstatus: open\nowner: ../people/ana.md\n---\n\nPreamble prose that mentions [the plan](../plans/q3.md).\n\n## Description\n\nFollow [the plan][plan] and [the plan][plan] again, then [read it][].\n\n[plan]: ../plans/q3.md \"Plan\"\n[read it]: ../plans/q3.md\n\n## Acceptance\n\n- [the plan](../plans/q3.md) is linked\n\n## Checklist\n\n- [the plan](../plans/q3.md) is read\n\n## Notes\n\nUndeclared prose about [the plan](../plans/q3.md).\n",
167
+ "source": "---\ntype: task\n---\n# Shipping the release\n\n- **title**: Ship it\n- **status**: open\n- **owner**: [Ana](../people/ana.md)\n- **Acceptance**:\n - [Ana](../people/ana.md)\n- **Checklist**:\n - [the plan](../plans/q3.md) is read\n\nPreamble prose that mentions [the plan](../plans/q3.md).\n\n## Description\n\nFollow [the plan][plan] and [the plan][plan] again, then [read it][].\n\n[plan]: ../plans/q3.md \"Plan\"\n[read it]: ../plans/q3.md\n\n## Notes\n\nUndeclared prose about [the plan](../plans/q3.md).\n",
168
168
  "documentTargets": [
169
169
  "plans/q3.md",
170
170
  "plans/2026-q3.md"
@@ -175,8 +175,7 @@
175
175
  "ok": false,
176
176
  "refusal": {
177
177
  "file": "tasks/one.md",
178
- "rule": "unknown-type",
179
- "location": "type"
178
+ "rule": "unknown-type"
180
179
  }
181
180
  }
182
181
  },
@@ -250,6 +249,110 @@
250
249
  "ok": true,
251
250
  "text": "Read outer Plan.\n"
252
251
  }
252
+ },
253
+ {
254
+ "name": "a link inside a fenced block is no link",
255
+ "file": "notes/seven.md",
256
+ "source": "```md\n[Plan](../plans/q3.md)\n```\n",
257
+ "documentTargets": [
258
+ "plans/q3.md"
259
+ ],
260
+ "definition": null,
261
+ "move": null,
262
+ "links": [],
263
+ "expected": {
264
+ "ok": true,
265
+ "text": "```md\n[Plan](../plans/q3.md)\n```\n"
266
+ }
267
+ },
268
+ {
269
+ "name": "a footnote is no link and its definition no link definition",
270
+ "file": "notes/seven.md",
271
+ "source": "Read [^plan].\n\n[^plan]: ../plans/q3.md\n",
272
+ "documentTargets": [
273
+ "plans/q3.md"
274
+ ],
275
+ "definition": null,
276
+ "move": null,
277
+ "links": [],
278
+ "expected": {
279
+ "ok": true,
280
+ "text": "Read [^plan].\n\n[^plan]: ../plans/q3.md\n"
281
+ }
282
+ },
283
+ {
284
+ "name": "a label folds case so a dotless i reads as an i",
285
+ "file": "notes/seven.md",
286
+ "source": "Read [ı].\n\n[i]: ../plans/q3.md\n",
287
+ "documentTargets": [
288
+ "plans/q3.md",
289
+ "plans/2026-q3.md"
290
+ ],
291
+ "definition": null,
292
+ "move": {
293
+ "href": "../plans/q3.md",
294
+ "to": "../plans/2026-q3.md"
295
+ },
296
+ "links": [
297
+ {
298
+ "href": "../plans/q3.md",
299
+ "target": "plans/q3.md"
300
+ }
301
+ ],
302
+ "expected": {
303
+ "ok": true,
304
+ "text": "Read ı.\n\n"
305
+ }
306
+ },
307
+ {
308
+ "name": "a shortcut followed by a bracket group that is no label is no link",
309
+ "file": "notes/seven.md",
310
+ "source": "Read [Plan][[x]] and [Plan][ ].\n\n[plan]: ../plans/q3.md\n",
311
+ "documentTargets": [
312
+ "plans/q3.md"
313
+ ],
314
+ "definition": null,
315
+ "move": null,
316
+ "links": [],
317
+ "expected": {
318
+ "ok": true,
319
+ "text": "Read [Plan][[x]] and [Plan][ ].\n\n[plan]: ../plans/q3.md\n"
320
+ }
321
+ },
322
+ {
323
+ "name": "a label longer than 999 UTF-16 code units is no label",
324
+ "file": "notes/seven.md",
325
+ "source": "Read [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx😀].\n\n[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx😀]: ../plans/q3.md\n",
326
+ "documentTargets": [
327
+ "plans/q3.md"
328
+ ],
329
+ "definition": null,
330
+ "move": null,
331
+ "links": [],
332
+ "expected": {
333
+ "ok": true,
334
+ "text": "Read [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx😀].\n\n[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx😀]: ../plans/q3.md\n"
335
+ }
336
+ },
337
+ {
338
+ "name": "a bare URL is no link, and a link written inside one still is",
339
+ "file": "notes/seven.md",
340
+ "source": "Read www.example.com/[the plan](../plans/q3.md) and https://example.com/a.md now.\n",
341
+ "documentTargets": [
342
+ "plans/q3.md"
343
+ ],
344
+ "definition": null,
345
+ "move": null,
346
+ "links": [
347
+ {
348
+ "href": "../plans/q3.md",
349
+ "target": "plans/q3.md"
350
+ }
351
+ ],
352
+ "expected": {
353
+ "ok": true,
354
+ "text": "Read www.example.com/the plan and https://example.com/a.md now.\n"
355
+ }
253
356
  }
254
357
  ]
255
358
  }