From 25ef456b132e389210c289222604bf43d0b3bbcd Mon Sep 17 00:00:00 2001 From: xxin Date: Fri, 27 Nov 2015 18:18:55 -0600 Subject: [PATCH] add marked source in tutorial doc update wording of later section no first, no next more on wording --- docs/docs/tutorial.md | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/docs/docs/tutorial.md b/docs/docs/tutorial.md index c130adb801..4f6d5ac3aa 100755 --- a/docs/docs/tutorial.md +++ b/docs/docs/tutorial.md @@ -31,7 +31,7 @@ For sake of simplicity, the server we will run uses a `JSON` file as a database. ### Getting started -For this tutorial, we're going to make it as easy as possible. Included in the server package discussed above is an HTML file which we'll work in. Open up `public/index.html` in your favorite editor. It should look something like this (with perhaps some minor differences, we'll add an additional ` +
@@ -221,22 +222,7 @@ Note that we have passed some data from the parent `CommentList` component to th Markdown is a simple way to format your text inline. For example, surrounding text with asterisks will make it emphasized. -First, add the third-party library **marked** to your application. This is a JavaScript library which takes Markdown text and converts it to raw HTML. This requires a script tag in your head (which we have already included in the React playground): - -```html{9} - - - - React Tutorial - - - - - - -``` - -Next, let's convert the comment text to Markdown and output it: +In this tutorial we use a third-party library **marked** which takes Markdown text and converts it to raw HTML. We already included this library with the original markup for the page, so we can just start using it. Let's convert the comment text to Markdown and output it: ```javascript{9} // tutorial6.js