From d93a1774c3c27d5d8200dd12d64656d53500a69b Mon Sep 17 00:00:00 2001 From: praschke Date: Sun, 22 Oct 2023 19:11:27 +0100 Subject: [PATCH] fiddle with table --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d7f7d08bd9..2c838645ac 100644 --- a/README.md +++ b/README.md @@ -93,12 +93,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