0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-05 08:02:42 +00:00

pdf route has the same problem, disabling it for now

This commit is contained in:
Scott Tolksdorf
2016-01-13 16:18:18 -05:00
parent 13f68c872e
commit 2335432c77
3 changed files with 5 additions and 6 deletions

View File

@@ -2,8 +2,6 @@ var React = require('react');
var _ = require('lodash');
var cx = require('classnames');
var PHBPage = require('./phbPage/phbPage.jsx');
var Markdown = require('marked');
var PageContainer = React.createClass({
@@ -15,7 +13,7 @@ var PageContainer = React.createClass({
renderPages : function(){
return _.map(this.props.text.split('\\page'), (pageText, index) => {
return <PHBPage content={Markdown(pageText)} key={index} />
return <div className='phb' dangerouslySetInnerHTML={{__html:Markdown(pageText)}} key={index} />
})
},