summaryrefslogtreecommitdiff
path: root/components/Sidebar/Link.tsx
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-12-04 13:44:47 +0100
committerGitHub <[email protected]>2021-12-04 13:44:47 +0100
commit0062fc08917e9ee70148105fe5134e9f4dcf9aba (patch)
tree43cae6d205afd8fdf4f9e70e93eeecf50b2bc109 /components/Sidebar/Link.tsx
parent4edbd2abae11def87284d6f7a4a2e1fd4e122cd6 (diff)
fix: add org-attach-id-dir support (#153)
Diffstat (limited to 'components/Sidebar/Link.tsx')
-rw-r--r--components/Sidebar/Link.tsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/Sidebar/Link.tsx b/components/Sidebar/Link.tsx
index c4eea2f..e5b1102 100644
--- a/components/Sidebar/Link.tsx
+++ b/components/Sidebar/Link.tsx
@@ -41,6 +41,8 @@ export interface LinkProps {
linksByNodeId: LinksByNodeId
isWiki?: boolean
noUnderline?: boolean
+ attachDir: string
+ macros: { [key: string]: string }
}
export interface NodeLinkProps {
@@ -138,6 +140,8 @@ export const PreviewLink = (props: LinkProps) => {
noUnderline,
linksByNodeId,
isWiki,
+ macros,
+ attachDir,
} = props
// TODO figure out how to properly type this
// see https://github.com/rehypejs/rehype-react/issues/25
@@ -290,6 +294,8 @@ export const PreviewLink = (props: LinkProps) => {
openContextMenu,
outline,
linksByNodeId,
+ macros,
+ attachDir,
}}
previewNode={nodeById[id]!}
collapse={false}