Include quotation marks for highlights by default, but allow to disable

Fixes #2697
This commit is contained in:
Martynas Bagdonas 2022-07-11 15:23:25 +03:00
parent acba90f272
commit f0e0971c69
2 changed files with 3 additions and 2 deletions

View file

@ -1361,7 +1361,8 @@ class EditorInstanceUtilities {
let vars = {
color: annotation.color || '',
highlight: (attrs) => attrs.quotes === 'true' ? quotedHighlightHTML : highlightHTML,
// Include quotation marks by default, but allow to disable with `quotes='false'`
highlight: (attrs) => attrs.quotes === 'false' ? highlightHTML : quotedHighlightHTML,
comment: commentHTML,
citation: citationHTML,
image: imageHTML,

View file

@ -205,7 +205,7 @@ pref("extensions.zotero.retractions.recentItems", "[]");
// Annotations
pref("extensions.zotero.annotations.noteTemplates.title", "<h1>{{title}}<br/>({{date}})</h1>");
pref("extensions.zotero.annotations.noteTemplates.highlight", "<p>{{highlight quotes='true'}} {{citation}} {{comment}}</p>");
pref("extensions.zotero.annotations.noteTemplates.highlight", "<p>{{highlight}} {{citation}} {{comment}}</p>");
pref("extensions.zotero.annotations.noteTemplates.note", "<p>{{citation}} {{comment}}</p>");
// Scaffold