diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-07-02 22:46:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-02 22:46:38 -0400 |
commit | ca97e38bd22875e23cfe6f70d1803ea31d6f0e89 (patch) | |
tree | deb2d4c63f8ffd463031f907687c8a416a26553c /ext/js/data/options-util.js | |
parent | a4715935cb4d910f5b13b398ca4742cf30c8f784 (diff) |
Anki support for structured-content (#1786)
* Update how glossary text is formatted
* Update structured content and image generation
* Pass root data to _createStructuredContentGenerator
* Implement media URLs
* Update documentation
* Update options util
* Apply styles to content
* Improve HTML normalization
* Update DatabaseVM.fetch function
* Update test
* Update test data
Diffstat (limited to 'ext/js/data/options-util.js')
-rw-r--r-- | ext/js/data/options-util.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/js/data/options-util.js b/ext/js/data/options-util.js index eb29dae4..42175d35 100644 --- a/ext/js/data/options-util.js +++ b/ext/js/data/options-util.js @@ -461,7 +461,8 @@ class OptionsUtil { {async: false, update: this._updateVersion9.bind(this)}, {async: true, update: this._updateVersion10.bind(this)}, {async: false, update: this._updateVersion11.bind(this)}, - {async: true, update: this._updateVersion12.bind(this)} + {async: true, update: this._updateVersion12.bind(this)}, + {async: true, update: this._updateVersion13.bind(this)} ]; } @@ -844,4 +845,11 @@ class OptionsUtil { } return options; } + + async _updateVersion13(options) { + // Version 13 changes: + // Handlebars templates updated to use formatGlossary. + await this._applyAnkiFieldTemplatesPatch(options, '/data/templates/anki-field-templates-upgrade-v13.handlebars'); + return options; + } } |