Skip to content

Commit

Permalink
Merge pull request #144 from dappforce/deploy/table
Browse files Browse the repository at this point in the history
Add Table Support for MD renderer
  • Loading branch information
olehmell authored Oct 5, 2023
2 parents 66c626a + c9464e0 commit 2d6ab0f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/utils/DfMd.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import ReactMarkdown from 'react-markdown'
import remarkGfm from 'remark-gfm'

interface Props {
source?: string
className?: string
}

export const DfMd = ({ source, className = '' }: Props) => (
<ReactMarkdown className={`markdown-body ${className}`} linkTarget='_blank'>
<ReactMarkdown
remarkPlugins={[remarkGfm]}
className={`markdown-body ${className}`}
linkTarget='_blank'
>
{source?.replaceAll('(https://app.subsocial.network/ipfs', '(https://ipfs.subsocial.network') ??
''}
</ReactMarkdown>
Expand Down

0 comments on commit 2d6ab0f

Please sign in to comment.