From e57a19e17456f971ffec61a07613c7065c1c3abc Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Mon, 16 Aug 2021 12:33:01 +0200 Subject: fix:#65 include citet and citep keywords --- pages/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pages/index.tsx') diff --git a/pages/index.tsx b/pages/index.tsx index e2cda84..7434e3d 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1006,7 +1006,7 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) { visuals.highlightFade * opacity, ) } - if (visuals.citeLinkColor && roamLink.type === 'cite') { + if (visuals.citeLinkColor && roamLink.type.includes('cite')) { return needsHighlighting && (visuals.citeLinkHighlightColor || visuals.linkHighlight) ? highlightColors[visuals.citeLinkColor][ visuals.citeLinkHighlightColor || visuals.linkHighlight @@ -1138,7 +1138,7 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) { {...graphCommonProps} linkLineDash={(link) => { const linkArg = link as OrgRoamLink - if (visuals.citeDashes && linkArg.type === 'cite') { + if (visuals.citeDashes && linkArg.type.includes('cite')) { return [visuals.citeDashLength, visuals.citeGapLength] } if (visuals.refDashes && linkArg.type == 'ref') { -- cgit v1.2.3