aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Markdown/Text.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Markdown/Text.tsx')
-rw-r--r--src/lib/Markdown/Text.tsx13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/Markdown/Text.tsx b/src/lib/Markdown/Text.tsx
new file mode 100644
index 0000000..e287dee
--- /dev/null
+++ b/src/lib/Markdown/Text.tsx
@@ -0,0 +1,13 @@
+import React from 'react';
+import SyntacticSpan, { splitter } from './SyntacticSpan';
+
+interface PropTypes {
+ line: string;
+}
+
+const Text: React.FC<PropTypes> = ({ line }) => {
+ return <>{line.split(splitter).map(span => <SyntacticSpan span={span} />)}</>;
+}
+
+export default Text;
+