From d735e682efccfc9c8fd207df5eaf6a4260663b19 Mon Sep 17 00:00:00 2001 From: absorpheus <19255312+absorpheus@users.noreply.github.com> Date: Thu, 11 Jul 2024 19:13:29 +0100 Subject: [PATCH] fix: colored highlights template in README (#29) --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5cf9acf..d152c92 100644 --- a/README.md +++ b/README.md @@ -125,12 +125,13 @@ Number of annotations:: {{annotations.length}} - 📖 Chapter:: {{#if chapter}}{{{chapter}}}{{else}}N/A{{/if}} - 🔖 Context:: {{#if contextualText}}{{{contextualText}}}{{else}}N/A{{/if}} -{{#if (eq highlightStyle "0")}}- 🎯 Highlight:: {{{highlight}}}{{/if}} -{{#if (eq highlightStyle "1")}}- 🎯 Highlight:: {{{highlight}}}{{/if}} -{{#if (eq highlightStyle "2")}}- 🎯 Highlight:: {{{highlight}}}{{/if}} -{{#if (eq highlightStyle "3")}}- 🎯 Highlight:: {{{highlight}}}{{/if}} -{{#if (eq highlightStyle "4")}}- 🎯 Highlight:: {{{highlight}}}{{/if}} -{{#if (eq highlightStyle "5")}}- 🎯 Highlight:: {{{highlight}}}{{/if}} +{{#if (eq highlightStyle "0")}}- 🎯 Highlight:: {{{highlight}}} +{{else if (eq highlightStyle "1")}}- 🎯 Highlight:: {{{highlight}}} +{{else if (eq highlightStyle "2")}}- 🎯 Highlight:: {{{highlight}}} +{{else if (eq highlightStyle "3")}}- 🎯 Highlight:: {{{highlight}}} +{{else if (eq highlightStyle "4")}}- 🎯 Highlight:: {{{highlight}}} +{{else if (eq highlightStyle "5")}}- 🎯 Highlight:: {{{highlight}}} +{{/if}} - 📝 Note:: {{#if note}}{{{note}}}{{else}}N/A{{/if}} - 📅 Highlight taken on:: {{dateFormat highlightCreationDate "YYYY-MM-DD hh:mm:ss A Z"}} - 📅 Highlight modified on:: {{dateFormat highlightModificationDate "YYYY-MM-DD hh:mm:ss A Z"}}