text component updates + performance improved

This commit is contained in:
tmshv committed 2021-09-21 21:22:15 +03:00
1 parent 968da68929
commit df229b5e8c
5 files changed
+11 -26

No files matched your search

-13
View File
@@ -1,13 +0,0 @@
import { Html } from 'src/components/Html'
import { memo } from 'react'
import { typograf, markdownToHtml } from 'src/lib/text'
export type MarkdownProps = {
data: string
}
export const Markdown: React.SFC<MarkdownProps> = memo(props => (
<Html
html={typograf(markdownToHtml(props.data))}
/>
))