diff options
author | Thomas F. K. Jorna <[email protected]> | 2022-07-13 13:23:57 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-07-13 13:23:57 +0200 |
commit | 46f8c23da389b6777169248ed3e33f55e3dcbece (patch) | |
tree | 34abd3ac10a1112baaea318cf5e38eabe33acb0a /util/processOrg.tsx | |
parent | 9474a254390b1e42488a1801fed5826b32a8030b (diff) | |
parent | 11111bb49889feb1b00e6814d9d81e3e23409d7c (diff) |
Merge pull request #247 from danhuynhdev/main
Diffstat (limited to 'util/processOrg.tsx')
-rw-r--r-- | util/processOrg.tsx | 4 |
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> |