Skip to content

Commit

Permalink
Fix: Hack to temporary fix #348
Browse files Browse the repository at this point in the history
  • Loading branch information
sapegin committed Mar 13, 2017
1 parent fb1b84a commit 609887a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rsg-components/Markdown/Markdown.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import React, { PropTypes } from 'react';
import { compiler } from 'markdown-to-jsx';
import mapValues from 'lodash/mapValues';
import memoize from 'lodash/memoize';
// import memoize from 'lodash/memoize';
import Styled from 'rsg-components/Styled';
import { styles as linkStyles } from 'rsg-components/Link';

// We’re explicitly specifying Webpack loaders here so we could skip specifying them in Webpack configuration.
// That way we could avoid clashes between our loaders and user loaders.
require('!!../../../loaders/style-loader!../../../loaders/css-loader!highlight.js/styles/tomorrow.css');

// Temporary disable memoization to fix: https://github.com/styleguidist/react-styleguidist/issues/348
// TODO: Remove after merge: https://github.com/probablyup/markdown-to-jsx/pull/96
const memoize = a => a;

// Code blocks with server-side syntax highlight
function Code({ children, className }) {
const isHighlighted = className && className.indexOf('lang-') !== -1;
Expand Down

0 comments on commit 609887a

Please sign in to comment.