diff --git a/.gitignore b/.gitignore index 56b1475..322ae7e 100644 --- a/.gitignore +++ b/.gitignore @@ -38,5 +38,6 @@ jspm_packages client/public db +db/matterwiki.sqlite config.js diff --git a/client/app/static/app.jsx b/client/app/static/app.jsx index f301ab4..d782cde 100644 --- a/client/app/static/app.jsx +++ b/client/app/static/app.jsx @@ -20,9 +20,12 @@ const App = React.createClass({
diff --git a/client/app/static/new.jsx b/client/app/static/new.jsx index 3b68f3f..6294423 100644 --- a/client/app/static/new.jsx +++ b/client/app/static/new.jsx @@ -7,11 +7,11 @@ class NewArticle extends React.Component { constructor(props) { super(props); this.handleChange = this.handleChange.bind(this); - this.state = {title: "", body: ""}; + this.state = {body: ""}; } handleChange() { - this.setState({title: this.refs.title.value, body: this.refs.body.value}); + this.setState({body: this.refs.body.value}); } getRawMarkupBody() { @@ -19,10 +19,6 @@ class NewArticle extends React.Component { return { __html: md.render(this.state.body) }; } - getRawMarkupTitle() { - var md = new Remarkable(); - return { __html: md.render(this.state.title) }; - } componentDidMount() { autosize(document.querySelectorAll('textarea')); @@ -32,13 +28,16 @@ class NewArticle extends React.Component { return (
-
+