Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let pg = dv.current()
- let studytopic = pg.studytopic.replace(/[%]+/g,'');
- const allPdf = app.vault.getFiles().filter(file => file.extension == 'pdf' && file.path.includes(studytopic));
- let myList = allPdf.map(file => dv.fileLink(file.path));
- for (let line of myList) {
- dv.paragraph('- [b] ' + line);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement