obsidian_demo.js
· 408 B · JavaScript
原始檔案
const arrPages = obj.pages;
html += "\n<details><summary>" + obj.name + "</summary>\n\n";
Promise.all( arrPages.map( async ( pages ) =>
{
const page_path = pages.path;
const page_name = pages.name;
const page_label = pages.label;
const file_link = dv.fileLink( page_path, false, page_label );
html += "- " + file_link + "\n";
}
));
html += "</details>\n";
1 | const arrPages = obj.pages; |
2 | |
3 | html += "\n<details><summary>" + obj.name + "</summary>\n\n"; |
4 | |
5 | Promise.all( arrPages.map( async ( pages ) => |
6 | { |
7 | const page_path = pages.path; |
8 | const page_name = pages.name; |
9 | const page_label = pages.label; |
10 | |
11 | const file_link = dv.fileLink( page_path, false, page_label ); |
12 | |
13 | html += "- " + file_link + "\n"; |
14 | } |
15 | )); |
16 | |
17 | html += "</details>\n"; |