From 5e24ca4fea2e4a31beb2123f328c600e83c5e7f3 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Tue, 12 Oct 2021 22:31:06 +0200 Subject: fix: update uniorg and fix unified deps --- util/processOrg.tsx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util/processOrg.tsx') 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, { -- cgit v1.2.3