diff options
Diffstat (limited to 'src/lib/Markdown/Text.tsx')
-rw-r--r-- | src/lib/Markdown/Text.tsx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/Markdown/Text.tsx b/src/lib/Markdown/Text.tsx new file mode 100644 index 0000000..b989476 --- /dev/null +++ b/src/lib/Markdown/Text.tsx @@ -0,0 +1,10 @@ +import React from 'react'; +import { InlineParserPropTypes } from './types'; +import InlineSyntax, { splitter } from './InlineSyntax'; + +const Text: React.FC<InlineParserPropTypes> = ({ line }) => { + return <>{line.split(splitter).map(span => <InlineSyntax line={span} />)}</>; +} + +export default Text; + |