summaryrefslogtreecommitdiff
path: root/pages/view.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'pages/view.tsx')
-rw-r--r--pages/view.tsx24
1 files changed, 24 insertions, 0 deletions
diff --git a/pages/view.tsx b/pages/view.tsx
new file mode 100644
index 0000000..da28109
--- /dev/null
+++ b/pages/view.tsx
@@ -0,0 +1,24 @@
+import unified from 'unified';
+import parse from 'uniorg-parse';
+import uniorg2rehype from 'uniorg-rehype';
+import rehypeStringify from 'rehype-stringify';
+import React from 'react';
+
+export interface ViewPageProps {
+
+}
+export default function ViewPage(props: ViewPageProps) {
+
+ const processor = unified().use(parse)
+ .use(uniorg2rehype)
+ .use(rehypeStringify);
+
+ processor
+ .process(`* org-mode example\n your text goes here`)
+ .then((file) => console.log(file.contents));
+
+ return (
+ <div>
+ </div>
+ )
+}