docs-and-graphs
Advanced tools
Comparing version 0.1.9 to 0.1.10
{ | ||
"name": "docs-and-graphs", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "", |
@@ -48,2 +48,3 @@ import yaml from 'js-yaml' | ||
function arrayToObject (arr) { | ||
@@ -50,0 +51,0 @@ if (arr.length === 0) return {} |
@@ -27,10 +27,7 @@ import { parseWikilink, parseExternalLinks } from '../text/links.js' | ||
const text = getText({ astNode: node, fullText }) | ||
if (node.type === 'wikiLink') { | ||
return { | ||
type: 'wikiLink', ...parseWikilink(text), | ||
} | ||
} else if (node.type === 'link') { | ||
} else if (node.type === 'link' || node.type === 'image') { | ||
const link = parseExternalLinks(text) | ||
@@ -42,3 +39,2 @@ if (!link) { | ||
} | ||
return { | ||
@@ -48,3 +44,2 @@ type: 'link', ...link, | ||
} | ||
return node | ||
@@ -51,0 +46,0 @@ }) |
@@ -94,7 +94,2 @@ import { getText } from './markdown/markdownAst.js' | ||
const tags = extractTags(value) | ||
if (tags.length) { | ||
block.tags = tags | ||
} | ||
annotateTags({ value, currentNode: block }, options) | ||
@@ -101,0 +96,0 @@ annotateInlineFields({ value, currentNode: block }, options) |
export default { | ||
title: 'Links', markdown: ` | ||
has image :: ![Lovely image](../houses/img.png) | ||
[[link 1]] | ||
@@ -5,0 +7,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
263452
5802