summaryrefslogtreecommitdiff
path: root/util/processOrg.tsx
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-10-12 22:31:06 +0200
committerThomas F. K. Jorna <[email protected]>2021-10-12 22:31:06 +0200
commit5e24ca4fea2e4a31beb2123f328c600e83c5e7f3 (patch)
treefe01aaf998c583be79bf51e44cfbe09651943e31 /util/processOrg.tsx
parent1148249b767cc3e0a36e63dd3c735f63d1067446 (diff)
fix: update uniorg and fix unified deps
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 3fc13dc..6d3a380 100644
--- a/util/processOrg.tsx
+++ b/util/processOrg.tsx
@@ -8,6 +8,7 @@ import attachments from 'uniorg-attach'
// rehypeHighlight does not have any types
// add error thing here
// import highlight from 'rehype-highlight'
+//import sectionParent from '@agentofuser/rehype-section'
import katex from 'rehype-katex'
import 'katex/dist/katex.css'
import rehype2react from 'rehype-react'
@@ -38,12 +39,15 @@ export const ProcessedOrg = (props: ProcessedOrgProps) => {
openContextMenu,
} = props
+ //const section = sectionParent.default
const processor = unified()
.use(uniorgParse)
.use(extractKeywords)
.use(attachments)
.use(uniorgSlug)
.use(uniorg2rehype)
+ //.data('settings', { fragment: true })
+ //.use(section)
// .use(highlight)
.use(katex)
.use(rehype2react, {