summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-10-01 20:41:17 +0200
committerThomas F. K. Jorna <[email protected]>2021-10-01 20:41:17 +0200
commit1b488b87fef21c1f430db4131e3ceb82f25612cf (patch)
tree84665fd286d5823698f1645232a32d9e36f39123 /pages
parent56eeb1fc6b03c4e8ed9405e301c7edc7be5fd5d9 (diff)
chore: build and clean
Diffstat (limited to 'pages')
-rw-r--r--pages/uniorg.tsx24
1 files changed, 0 insertions, 24 deletions
diff --git a/pages/uniorg.tsx b/pages/uniorg.tsx
deleted file mode 100644
index 0c77cdb..0000000
--- a/pages/uniorg.tsx
+++ /dev/null
@@ -1,24 +0,0 @@
-import unified from 'unified'
-import createStream from 'unified-stream'
-import uniorgParse from 'uniorg-parse'
-import uniorg2rehype from 'uniorg-rehype'
-import highlight from 'rehype-highlight'
-import katex from 'rehype-katex'
-import rehype2react from 'rehype-react'
-import React from 'react'
-
-export interface uniorgProps {
- orgText: string
-}
-
-export const UniOrg = (props: uniorgProps) => {
- const { orgText } = props
- const processor = unified()
- .use(uniorgParse)
- .use(uniorg2rehype)
- .use(katex)
- .use(rehype2react, { createElement: React.createElement })
-
- return <div>processor.processSync(orgText)</div>
-}
-