blob: f46199e1bbd6e46c5720a4da0ba4772c813b3d6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import React from 'react';
import { InlineParserPropTypes } from './types';
import InlineSyntax, { splitter } from './InlineSyntax';
const Paragraph: React.FC<InlineParserPropTypes> = ({ line }) => {
const result = line.split(splitter).map(span => <InlineSyntax line={span} />);
return <p> {result} </p>;
}
export default Paragraph;
|