aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMarvNC <rotrobmin@gmail.com>2023-10-26 13:31:01 -0700
committerMarvNC <rotrobmin@gmail.com>2023-10-26 13:31:01 -0700
commitb97af39db9d4eb5369fac14ee5d0ecbeb0a0acab (patch)
tree461b489dc89de059af3f5ea80dff7098693bb751 /README.md
parentd3c916b8f742ad62e98f65e18d0dcb8a96235828 (diff)
Autoformat
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 8 insertions, 6 deletions
diff --git a/README.md b/README.md
index 1f25c057..a107fe5e 100644
--- a/README.md
+++ b/README.md
@@ -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