Преглед на файлове

Listing 6: Adding Markdown.

Frederic G. MARAND преди 9 години
родител
ревизия
2d0fbfe1bf
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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>
     );
   }