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:
@@ -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} />
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user