From 101e15f4f265eea569ef83211bab069bd5799553 Mon Sep 17 00:00:00 2001 From: Ugo Finnendahl Date: Mon, 9 Oct 2023 17:55:43 +0200 Subject: [PATCH] fix brackets for styles that do not use parentheses --- src/gen-citation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gen-citation.js b/src/gen-citation.js index 4be0518..03e8435 100644 --- a/src/gen-citation.js +++ b/src/gen-citation.js @@ -81,7 +81,7 @@ export const genCitation = ( // Do not link bracket const output = isComposite ? `${citationText}` - : `(${citationText.slice(1, -1)})` + : `${citationText.slice(0,1)}${citationText.slice(1, -1)}${citationText.slice(-1)}` return [ citationText, htmlToHast(`${output}`),