Explorar el Código

Listing 6: Adding Markdown.

Frederic G. MARAND hace 9 años
padre
commit
2d0fbfe1bf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      public/scripts/tutorial.js

+ 1 - 1
public/scripts/tutorial.js

@@ -5,7 +5,7 @@ let Comment = React.createClass({
         <h2 className="commentAuthor">
           {this.props.author}
         </h2>
-        {this.props.children}
+        {marked(this.props.children.toString())}
       </div>
     );
   }