blob: b98947609fb5a6e357657bc9f68ab5205c93853b (
plain)
1
2
3
4
5
6
7
8
9
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;
|