Skip to content

Commit

Permalink
Include URL for outline item
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtcode committed Oct 30, 2023
1 parent 3f3ba8f commit 046158b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/core/text/analyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,12 +465,16 @@ export class OutlineAnalyzer {
for (let item of items) {
let newItem = {
title: item.title,
location: {
dest: item.dest,
},
items: transformItems(item.items),
expanded: false,
};
if (item.dest) {
newItem.location = {
dest: item.dest,
};
} else if (item.unsafeUrl) {
newItem.url = item.unsafeUrl;
}
newItems.push(newItem);
}
return newItems;
Expand Down

0 comments on commit 046158b

Please sign in to comment.