import React from 'react';
import styled from 'styled-components';
const boldSyntax = '**';
const Bold = styled.span({ fontWeight: 'bold' });
export function formatMarkdown(inputString: string): React.ReactElement {
const formattedString = inputString
.split(boldSyntax)
.map((value, index) =>
index % 2 === 0 ? (
{value}
) : (
{value}
),
);
return <>{formattedString}>;
}