diff options
author | MarvNC <rotrobmin@gmail.com> | 2023-10-26 13:31:01 -0700 |
---|---|---|
committer | MarvNC <rotrobmin@gmail.com> | 2023-10-26 13:31:01 -0700 |
commit | b97af39db9d4eb5369fac14ee5d0ecbeb0a0acab (patch) | |
tree | 461b489dc89de059af3f5ea80dff7098693bb751 | |
parent | d3c916b8f742ad62e98f65e18d0dcb8a96235828 (diff) |
Autoformat
-rw-r--r-- | README.md | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -39,6 +39,8 @@ Yomitan provides advanced features not available in other browser-based dictiona - [Installation](#installation) - [Migrating from Yomichan](#migrating-from-yomichan) + - [Exporting Data](#exporting-data) + - [Custom Templates](#custom-templates) - [Dictionaries](#dictionaries) - [Basic Usage](#basic-usage) - [Importing Dictionaries](#importing-dictionaries) @@ -94,12 +96,12 @@ Due to security concerns, an alternate implementation of Handlebars is being use This revealed a bug in four of Yomitan's template helpers, which have now been fixed in the default templates. If your custom templates use the following helpers, please ensure their use matches the corrected forms. -Helper | Example | Corrected --------|---------|---------- -`formatGlossary` | `{{#formatGlossary ../dictionary}}{{{.}}}{{/formatGlossary}}` | `{{formatGlossary ../dictionary .}}` -`furigana` | `{{#furigana}}{{{definition}}}{{/furigana}}` | `{{furigana definition}}` -`furiganaPlain` | `{{~#furiganaPlain}}{{{.}}}{{/furiganaPlain~}}` | `{{~furiganaPlain .~}}` -`dumpObject` | `{{#dumpObject}}{{{.}}}{{/dumpObject}}` | `{{dumpObject .}}` +| Helper | Example | Corrected | +| ---------------- | ------------------------------------------------------------- | ------------------------------------ | +| `formatGlossary` | `{{#formatGlossary ../dictionary}}{{{.}}}{{/formatGlossary}}` | `{{formatGlossary ../dictionary .}}` | +| `furigana` | `{{#furigana}}{{{definition}}}{{/furigana}}` | `{{furigana definition}}` | +| `furiganaPlain` | `{{~#furiganaPlain}}{{{.}}}{{/furiganaPlain~}}` | `{{~furiganaPlain .~}}` | +| `dumpObject` | `{{#dumpObject}}{{{.}}}{{/dumpObject}}` | `{{dumpObject .}}` | Authors of custom templates may be interested to know that other helpers previously used and documented in the block form (e.g. `{{#set "key" "value"}}{{/set}}`), while not broken by this change, may also be replaced with the less verbose |