Skip to content

Commit

Permalink
feat: Add remark-gfm plugin (amundsen-io#2171)
Browse files Browse the repository at this point in the history
  • Loading branch information
ozandogrultan authored Jul 10, 2023
1 parent bbf29cd commit 00e3477
Show file tree
Hide file tree
Showing 3 changed files with 204 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import * as autosize from 'autosize';
import * as React from 'react';
import * as ReactMarkdown from 'react-markdown';
import remarkGfm from 'remark-gfm';

import { EditableSectionChildProps } from 'components/EditableSection';
import { logClick } from 'utils/analytics';
Expand Down Expand Up @@ -168,7 +169,10 @@ class EditableText extends React.Component<
return (
<div className="editable-text">
<div className="markdown-wrapper">
<ReactMarkdown allowDangerousHtml={!!allowDangerousHtml}>
<ReactMarkdown
allowDangerousHtml={!!allowDangerousHtml}
plugins={[remarkGfm]}
>
{value}
</ReactMarkdown>
</div>
Expand Down
Loading

0 comments on commit 00e3477

Please sign in to comment.