import{getNodeAttribute as m,setNodeAttributeValue as c}from"../../../../shared/markdoc.js";import{MdResolveError as l}from"./md-resolve-error.js";import{resolvePathInMarkdown as d}from"../resolve-path-in-markdown.js";async function w(o,t,r,{context:a}){const s=m(o,t);if(s){const e=d(s,r,a.fs.cwd);if(!await a.fs.exists(e))throw new l(`Schema file ${e} does not exist`,{rawLink:e});const i=(await a.cache.load(e,"yaml")).data;c(o,t+"Resolved",i)}}export{w as resolveParsedYaml};
