Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/parse-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -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[]}
*/
Expand Down Expand Up @@ -335,4 +347,4 @@ function renderIconToHTML(icon) {
} else {
return icon ? `<span>${icon}</span>` : ''
}
}
}