diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-08-16 12:33:01 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-08-16 12:33:01 +0200 |
commit | e57a19e17456f971ffec61a07613c7065c1c3abc (patch) | |
tree | a49f0250aab7b8f92c3ba985fe1968b0ba0d02b9 /pages/index.tsx | |
parent | ccf8dd47bdb04289cce7ae690d9ce21c09254a01 (diff) |
fix:#65 include citet and citep keywords
Diffstat (limited to 'pages/index.tsx')
-rw-r--r-- | pages/index.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
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') { |