0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 18:32:40 +00:00

setup test file with phantomjs, no luck though

This commit is contained in:
Scott
2016-01-12 12:50:34 -08:00
committed by Scott Tolksdorf
parent db5d12992a
commit a193bccc86
10 changed files with 415 additions and 3 deletions

View File

@@ -2,6 +2,8 @@ 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({
@@ -13,7 +15,7 @@ var PageContainer = React.createClass({
renderPages : function(){
return _.map(this.props.text.split('\\page'), (pageText, index) => {
return <div className='phb' dangerouslySetInnerHTML={{__html:Markdown(pageText)}} key={index} />
return <PHBPage content={Markdown(pageText)} key={index} />
})
},