/* eslint-disable jsx-a11y/anchor-has-content */ import { h, Fragment } from 'preact' import MarkdownRenderer from 'markdown-to-jsx' import { MarkdownWrapper } from './styles' import { P, A, H1, H2, H3, Span } from '../Text' const Markdown = ({ children, withLinebreaks, options, ...rest }) => ( ( {spanChildren} ), }, a: { component: props => ( ), }, h1: { component: H1, }, h2: { component: H2, }, h3: { component: H3, }, }, ...options, }} {...rest} > {children} ) export default Markdown