From 315dc425e489dc96c2f2d4e13b500105d724ec52 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Wed, 7 Jul 2021 20:00:30 -0400 Subject: Anki card selected text (#1809) * Add support for injecting the text selection into Anki cards * Add selection-text * Upgrade to add {selection-text} * Update descriptions * Update test data --- ext/data/templates/default-anki-field-templates.handlebars | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/data/templates/default-anki-field-templates.handlebars') diff --git a/ext/data/templates/default-anki-field-templates.handlebars b/ext/data/templates/default-anki-field-templates.handlebars index 62da796d..c9ee2833 100644 --- a/ext/data/templates/default-anki-field-templates.handlebars +++ b/ext/data/templates/default-anki-field-templates.handlebars @@ -378,4 +378,8 @@ {{~#multiLine}}{{context.fullQuery}}{{/multiLine~}} {{/inline}} +{{#*inline "selection-text"}} + {{~#if (hasMedia "selectionText")}}{{#getMedia "selectionText" format="text"}}{{/getMedia}}{{/if~}} +{{/inline}} + {{~> (lookup . "marker") ~}} -- cgit v1.2.3