From a1e7b240beaf52d069413fa7e90a866ec876aa2e Mon Sep 17 00:00:00 2001 From: Abdullah Malek <19255312+absorpheus@users.noreply.github.com> Date: Thu, 11 Jul 2024 18:21:48 +0100 Subject: [PATCH] fix: colored highlights template in README --- 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"}}