diff options
author | Kuuuube <61125188+Kuuuube@users.noreply.github.com> | 2024-06-22 00:40:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-22 04:40:59 +0000 |
commit | 7cce3b9aebb6da75fb0ba0bfe15459aa47bbee00 (patch) | |
tree | 1183ff1175aa602c7e09488b4cc557ab1a873c62 /ext/js/pages/settings/anki-templates-controller.js | |
parent | 1d8f2f499a71bf528aedb9b0eeeb036340ed85ac (diff) |
Support dictionaryStylesMap in anki-deck-generator-controller and anki-templates-controller (#1112)
* Support dictionaryStylesMap in bulk anki card generation
* Move getDictionaryStylesMap to anki-note-builder
* Support dictionaryStylesMap in anki-templates-controller
* Strip newline to prevent tsv breaking
* Allow dictionaryStylesMap to be omitted in createNote
---------
Signed-off-by: Kuuuube <61125188+Kuuuube@users.noreply.github.com>
Diffstat (limited to 'ext/js/pages/settings/anki-templates-controller.js')
-rw-r--r-- | ext/js/pages/settings/anki-templates-controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/pages/settings/anki-templates-controller.js b/ext/js/pages/settings/anki-templates-controller.js index 15566e75..af317881 100644 --- a/ext/js/pages/settings/anki-templates-controller.js +++ b/ext/js/pages/settings/anki-templates-controller.js @@ -278,7 +278,7 @@ export class AnkiTemplatesController { resultOutputMode, glossaryLayoutMode, compactTags, - dictionaryStylesMap: new Map(), + dictionaryStylesMap: this._ankiNoteBuilder.getDictionaryStylesMap(options.dictionaries), })); result = note.fields.field; allErrors.push(...errors); |