From 3677b54512522c4546eabc969125ee2b06337c15 Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 14 Jun 2016 11:04:28 +0300 Subject: [PATCH] Add quotes around symbols --- readme.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/readme.md b/readme.md index c1b8d43..f2370b7 100644 --- a/readme.md +++ b/readme.md @@ -75,16 +75,20 @@ or, if you're writing a long string of single words, you can use 'split' "emotion" : "happy sad reflective morose proud".split(" "), ``` -Rules can also contain expansion symbols, words surrounded by #'s: -``` -mainCharacter: ["Brittany the Wombat"], -story : ["This is a story about #mainCharacter#"] +Rules can also contain expansion symbols, words surrounded by `#`s: +```json +{ +"mainCharacter": ["Brittany the Wombat"], +"story" : ["This is a story about #mainCharacter#"] +} ``` Expansion symbols can have modifiers. Modifiers can change something about the string expansion of that symbol. `#animal.capitalize#` or `#animal.a#` or `#animal.s#` -``` -name: ["Brittany"], -animal: ["wombat"], -story : ["This is a story about #name# the #animal.capitalize#"] +```json +{ +"name": ["Brittany"], +"animal": ["wombat"], +"story" : ["This is a story about #name# the #animal.capitalize#"] +} ```