فهرست منبع

Listing 6: Adding Markdown.

Frederic G. MARAND 8 سال پیش
والد
کامیت
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>
     );
   }