From 872be7c3631895d951e1991b0bcbd4d164941dab Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Sat, 7 Aug 2021 13:26:48 +0200 Subject: chore: remove test files --- anyons.html | 0 pages/view.tsx | 24 ------------------------ util/orga.js | 8 -------- util/uniorg.js | 10 ---------- 4 files changed, 42 deletions(-) delete mode 100644 anyons.html delete mode 100644 pages/view.tsx delete mode 100644 util/orga.js delete mode 100644 util/uniorg.js diff --git a/anyons.html b/anyons.html deleted file mode 100644 index e69de29..0000000 diff --git a/pages/view.tsx b/pages/view.tsx deleted file mode 100644 index da28109..0000000 --- a/pages/view.tsx +++ /dev/null @@ -1,24 +0,0 @@ -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 ( -
-
- ) -} diff --git a/util/orga.js b/util/orga.js deleted file mode 100644 index 4f85eeb..0000000 --- a/util/orga.js +++ /dev/null @@ -1,8 +0,0 @@ -const stream = import('unified-stream') -const reorg = require('@orgajs/reorg') -const mutate = require('@orgajs/reorg-rehype') -const html = import('rehype-stringify') - -const processor = reorg().use(mutate).use(html) - -process.stid.pipe(stream(processor)).pipe(process.stdout) diff --git a/util/uniorg.js b/util/uniorg.js deleted file mode 100644 index cc046e9..0000000 --- a/util/uniorg.js +++ /dev/null @@ -1,10 +0,0 @@ - -import { unified } from 'unified'; -var createStream = import('unified-stream'); -var uniorgParse = import('uniorg-parse'); -var uniorg2rehype = import('uniorg-rehype'); -var html = import('rehype-stringify'); - -var processor = unified().use(uniorgParse).use(uniorg2rehype).use(html); - -process.stdin.pipe(createStream(processor)).pipe(process.stdout); -- cgit v1.2.3