${p.default}` : ''}${meta.type}`;
+ if (meta.description) {
+ desc = `${meta.description}${desc}
`; + } + return desc; + } + + function hasContents(contents: html.MarkupContent | html.MarkedString | html.MarkedString[]) { + if (typeof contents === 'string') { + return !!contents; + } + if (Array.isArray(contents)) { + return contents.some(hasContents); + } + return !!contents.value; + } }, async provideDocumentLinks(document, token) { @@ -540,11 +592,17 @@ export function create( }, }; - async function runWithVueData