From 4e86b7ef1eb69354a80bd93f2063ac1643236b80 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Sat, 7 Aug 2021 13:25:35 +0200 Subject: fix: no bare boundp in iflet --- pages/view.tsx | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/view.tsx (limited to 'pages') 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 ( +
+
+ ) +} -- cgit v1.2.3