Skip to content

Commit 7bd9626

Browse files
author
Carlos Paelinck
authored
Upgraded Marksy, styles now showing. (#398)
1 parent db22b1f commit 7bd9626

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"emotion": "^8.0.8",
2727
"history": "^4.6.1",
2828
"lodash": "^4.17.4",
29-
"marksy": "^0.4.2",
29+
"marksy": "^5.0.0",
3030
"normalize.css": "^7.0.0",
3131
"prismjs": "^1.6.0",
3232
"react-emotion": "^8.0.8",

src/components/markdown.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Component } from 'react';
1+
import React, { createElement, Component } from 'react';
22
import PropTypes from 'prop-types';
33
import { getStyles } from '../utils/base';
44
import marksy from 'marksy';
@@ -44,6 +44,7 @@ const _CombineBlockQuote = ({ children }) => (
4444
_CombineBlockQuote.propTypes = { children: PropTypes.node };
4545

4646
const compile = marksy({
47+
createElement,
4748
elements: {
4849
a: Link,
4950
blockquote: _CombineBlockQuote,

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3867,9 +3867,9 @@ marked@^0.3.6:
38673867
version "0.3.6"
38683868
resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.6.tgz#b2c6c618fccece4ef86c4fc6cb8a7cbf5aeda8d7"
38693869

3870-
marksy@^0.4.2:
3871-
version "0.4.2"
3872-
resolved "https://registry.yarnpkg.com/marksy/-/marksy-0.4.2.tgz#c2ad4ecf0d47d6e2565e88ce7c33013e07620126"
3870+
marksy@^5.0.0:
3871+
version "5.0.0"
3872+
resolved "https://registry.yarnpkg.com/marksy/-/marksy-5.0.0.tgz#70e9015154994df339528c43511f71540f6559fe"
38733873
dependencies:
38743874
babel-standalone "^6.24.0"
38753875
he "^1.1.1"

0 commit comments

Comments
 (0)