diff --git a/src/parse-table.js b/src/parse-table.js index a49f0c0..e67e497 100644 --- a/src/parse-table.js +++ b/src/parse-table.js @@ -89,6 +89,18 @@ column with id "${propertyId}" is used`) * @property {number} lastEditedTime */ + /** + * Check if page is actually link and replace if necessary. + */ + pagesValid.forEach(page => { + if (page.title[0][1]) { + let title = page.title[0][1][0][1]['title']; + let uri = page.title[0][1][0][1]['uri']; + page.title = title; + page.uri = uri; + } + }) + /** * @type {PageMetadata[]} */ @@ -335,4 +347,4 @@ function renderIconToHTML(icon) { } else { return icon ? `${icon}` : '' } -} \ No newline at end of file +}