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 committed by Dan Stillman
parent 612fec8961
commit fcb63465ac
2 changed files with 3 additions and 2 deletions

View file

@ -1358,7 +1358,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

@ -203,7 +203,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