[Item] Merge Blockquotes by Sections #1243
RichardFaucheron
started this conversation in
Note Templates
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Function
This template is designed to summarize multiple notes into a single Markdown file. It organizes the content by grouping blockquotes under specific section headings, with links to both the corresponding PDFs and the notes themselves.
The main goal is to allow quick comparison of your notes for each section by using blockquotes as summaries. If similar blockquotes are found across different notes, they are merged into one.
The default headings that the template scans for are : ["Model", "Forecast", "Uncertainty", "Latent", "Loss", "Train", "Data", "Results", "Experiments", "Review"]).
How to use
Personalization
Change Headings : Modify the list of headings to suit your preferences by updating the myHeadingList variable:
const myHeadingList = ["Model", "Forecast", "Uncertainty", "Latent", "Loss","Train", "Data", "Results", "Experiments", "Review"];
Change Heading Levels : Adjust the level of headings the script scans by modifying the regex pattern:
const headingRegex = /^##\s+(.*)$/gm;
Customize Section Summaries : Instead of using blockquotes, you can change the string key that fetches your summaries. Update the blockquote regex as follows:
const blockquoteRegex = /^>\s+(.+)$/gm;
Screenshots
Test on Zotero version
7.0.11
Test on Better Notes version
2.1.9
Template Type
Item
Template Share Code
Anything else
No response
Beta Was this translation helpful? Give feedback.
All reactions