File tree Expand file tree Collapse file tree 5 files changed +13
-12
lines changed Expand file tree Collapse file tree 5 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 43
43
"grommet-icons" : " ^4.11.0" ,
44
44
"grommet-theme-hpe" : " 2.0.2" ,
45
45
"jest-styled-components" : " ^7.2.0" ,
46
+ "markdown-to-jsx" : " 7.1.8" ,
46
47
"netlify-cms-app" : " ^2.15.72" ,
47
48
"netlify-cms-media-library-cloudinary" : " ^1.3.10" ,
48
49
"prismjs" : " ^1.29.0" ,
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ import { LinkNext } from 'grommet-icons';
4
4
import PropTypes from 'prop-types' ;
5
5
import { ButtonLink } from '..' ;
6
6
7
- // const { GATSBY_HPE_SIGNOUT } = process.env;
8
- // const { GATSBY_REDIRECT_URI } = process.env;
9
7
10
8
function getInitials ( name ) {
11
9
if ( ! name ) {
Original file line number Diff line number Diff line change @@ -17,9 +17,6 @@ import { ButtonLink } from '..';
17
17
import { UserMenu } from './UserMenu' ;
18
18
19
19
20
- // const { GATSBY_CLIENT_ID } = process.env;
21
- // const { GATSBY_CLIENT_OAUTH } = process.env;
22
-
23
20
const TextAlignLeft = styled ( Box ) `
24
21
& > a {
25
22
text-align: left;
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ import {
7
7
Button ,
8
8
Heading ,
9
9
Image as GrommetImage ,
10
- Markdown as GrommetMarkdown ,
11
10
Paragraph ,
12
11
} from 'grommet' ;
13
12
import { Download , Github } from 'grommet-icons' ;
14
13
import PropTypes from 'prop-types' ;
15
14
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter' ;
16
15
import { deepMerge } from 'grommet/utils' ;
17
16
import codestyle from './markdownTheme' ;
17
+ import MarkdownToJSX from 'markdown-to-jsx' ;
18
18
19
19
class Image extends React . Component {
20
20
render ( ) {
@@ -158,13 +158,13 @@ export const titleComponents = deepMerge(cardComponents, {
158
158
} ) ;
159
159
160
160
export const Markdown = ( props ) => (
161
- < GrommetMarkdown components = { components } { ...props } />
161
+ < MarkdownToJSX components = { components } { ...props } />
162
162
) ;
163
163
export const CardMarkdown = ( props ) => (
164
- < GrommetMarkdown components = { cardComponents } { ...props } />
164
+ < MarkdownToJSX components = { cardComponents } { ...props } />
165
165
) ;
166
166
export const TitleMarkdown = ( props ) => (
167
- < GrommetMarkdown components = { titleComponents } { ...props } />
167
+ < MarkdownToJSX components = { titleComponents } { ...props } />
168
168
) ;
169
169
170
170
export default Markdown ;
Original file line number Diff line number Diff line change @@ -9686,10 +9686,15 @@ markdown-table@^2.0.0:
9686
9686
dependencies:
9687
9687
repeat-string "^1.0.0"
9688
9688
9689
+
9690
+ version "7.1.8"
9691
+ resolved "https://registry.yarnpkg.com/markdown-to-jsx/-/markdown-to-jsx-7.1.8.tgz#49c3bb3c122aa714324034142c8829b93c889338"
9692
+ integrity sha512-rRSa1aFmFnpDRFAhv5vIkWM4nPaoB9vnzIjuIKa1wGupfn2hdCNeaQHKpu4/muoc8n8J7yowjTP2oncA4/Rbgg==
9693
+
9689
9694
markdown-to-jsx@^7.2.0:
9690
- version "7.4.0 "
9691
- resolved "https://registry.yarnpkg.com/markdown-to-jsx/-/markdown-to-jsx-7.4.0 .tgz#4606c5c549a6f6cb87604c35f5ee4f42959ffb6b "
9692
- integrity sha512-zilc+MIkVVXPyTb4iIUTIz9yyqfcWjszGXnwF9K/aiBWcHXFcmdEMTkG01/oQhwSCH7SY1BnG6+ev5BzWmbPrg ==
9695
+ version "7.4.1 "
9696
+ resolved "https://registry.yarnpkg.com/markdown-to-jsx/-/markdown-to-jsx-7.4.1 .tgz#1ed6a60f8f9cd944bec39d9923fbbc8d3d60dcb9 "
9697
+ integrity sha512-GbrbkTnHp9u6+HqbPRFJbObi369AgJNXi/sGqq5HRsoZW063xR1XDCaConqq+whfEIAlzB1YPnOgsPc7B7bc/A ==
9693
9698
9694
9699
material-colors@^1.2.1:
9695
9700
version "1.2.6"
You can’t perform that action at this time.
0 commit comments