summaryrefslogtreecommitdiff
path: root/util/processOrg.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'util/processOrg.tsx')
-rw-r--r--util/processOrg.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/processOrg.tsx b/util/processOrg.tsx
index fa135a1..ea868ee 100644
--- a/util/processOrg.tsx
+++ b/util/processOrg.tsx
@@ -50,6 +50,7 @@ export interface ProcessedOrgProps {
linksByNodeId: LinksByNodeId
macros: { [key: string]: string } | {}
attachDir: string
+ useInheritance: boolean
}
export const ProcessedOrg = (props: ProcessedOrgProps) => {
@@ -66,6 +67,7 @@ export const ProcessedOrg = (props: ProcessedOrgProps) => {
linksByNodeId,
macros,
attachDir,
+ useInheritance,
} = props
if (!previewNode || !linksByNodeId) {
@@ -77,6 +79,7 @@ export const ProcessedOrg = (props: ProcessedOrgProps) => {
.use(extractKeywords)
.use(attachments, {
idDir: attachDir || undefined,
+ useInheritance,
})
.use(uniorgSlug)
.use(uniorg2rehype, { useSections: true })
@@ -156,6 +159,7 @@ export const ProcessedOrg = (props: ProcessedOrgProps) => {
isWiki={isMarkdown}
macros={macros}
attachDir={attachDir}
+ useInheritance={useInheritance}
>
{children}
</PreviewLink>