summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-02 10:20:44 +0200
committerSamy Pessé <samypesse@gmail.com>2014-04-02 10:20:44 +0200
commit53dc206d71626bbc9b7022ebc85be816a2da2ba1 (patch)
tree0b263f77d6bbc4ebc63e3d8337bfdfaeedd08f78
parent3c9d8878df3766ca66a34765ce01a59a34c3b449 (diff)
downloadgitbook-53dc206d71626bbc9b7022ebc85be816a2da2ba1.zip
gitbook-53dc206d71626bbc9b7022ebc85be816a2da2ba1.tar.gz
gitbook-53dc206d71626bbc9b7022ebc85be816a2da2ba1.tar.bz2
Fix format for exercise
-rw-r--r--README.md44
1 files changed, 19 insertions, 25 deletions
diff --git a/README.md b/README.md
index dbf1c8a..54a2a5c 100644
--- a/README.md
+++ b/README.md
@@ -70,28 +70,22 @@ An exercise is defined by 3 different parts:
* Solution to show to the user when he gives up
* Validation code for testing the result of the user input
-Exercises are defined in the markdown using the following format:
-
-
----
-
-Define a variable `c` as the modulus of the decremented value of `x` by 3.
-
-```js
-var x = 10;
-
-var c =
-```
-
-```js
-var x = 10;
-
-var c = (x--) % 3;
-```
-
-```js
-assert(c == 1);
-```
-
----
-
+Exercises need to start and finish with a separation bar (````---``` or ```***```). It should contain 3 code elements (base, solution and validation).
+
+ ---
+
+ Define a variable `x` which equal to 10.
+
+ ```js
+ var x =
+ ```
+
+ ```js
+ var x = 10;
+ ```
+
+ ```js
+ assert(x == 10);
+ ```
+
+ ---