diff --git a/client/homebrew/editor/snippetbar/snippetsLegacy/tableOfContents.gen.js b/client/homebrew/editor/snippetbar/snippetsLegacy/tableOfContents.gen.js index 8a03b0530..4082ac4ef 100644 --- a/client/homebrew/editor/snippetbar/snippetsLegacy/tableOfContents.gen.js +++ b/client/homebrew/editor/snippetbar/snippetsLegacy/tableOfContents.gen.js @@ -69,4 +69,4 @@ module.exports = function(brew){ ##### Table Of Contents ${markdown} \n`; -}; +}; \ No newline at end of file diff --git a/shared/naturalcrit/codeEditor/codeEditor.jsx b/shared/naturalcrit/codeEditor/codeEditor.jsx index 0bbd6cef6..99855e4ce 100644 --- a/shared/naturalcrit/codeEditor/codeEditor.jsx +++ b/shared/naturalcrit/codeEditor/codeEditor.jsx @@ -74,9 +74,9 @@ const CodeEditor = createClass({ } }, - componentWillReceiveProps : function(nextProps){ - if(this.codeMirror && nextProps.value !== undefined && this.codeMirror.getValue() != nextProps.value) { - this.codeMirror.setValue(nextProps.value); + componentDidUpdate : function(prevProps) { + if(this.codeMirror && this.codeMirror.getValue() != this.props.value) { + this.codeMirror.setValue(this.props.value); } }, diff --git a/shared/naturalcrit/markdown.js b/shared/naturalcrit/markdown.js index 38522488c..3a35cc182 100644 --- a/shared/naturalcrit/markdown.js +++ b/shared/naturalcrit/markdown.js @@ -11,18 +11,10 @@ renderer.html = function (html) { html = html.substring(0, html.lastIndexOf('')); return `${openTag} ${Markdown(html)} `; } - //if(html.startsWith('
+// Don't wrap {{ Divs or {{ empty Spans in
tags renderer.paragraph = function(text){ let match; if(text.startsWith('