Skip to content

Commit 6254d3b

Browse files
authored
Update README.md
1 parent 035062d commit 6254d3b

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

README.md

+20-18
Original file line numberDiff line numberDiff line change
@@ -208,24 +208,26 @@ Example
208208

209209
Here is the string `Lives down BY the River` with each of the converters:
210210

211-
// If you typed in 'Lives down BY the River' for the __replacerSlot__ and
212-
// used one of the optional Case Converters you would get the following:
213-
214-
__replacerSlot__(noCase) // Lives down BY the River
215-
__replacerSlot__(camelCase) // livesDownByTheRiver
216-
__replacerSlot__(constantCase) // LIVES_DOWN_BY_THE_RIVER
217-
__replacerSlot__(dotCase) // lives.down.by.the.river
218-
__replacerSlot__(kebabCase) // lives-down-by-the-river
219-
__replacerSlot__(lowerCase) // livesdownbytheriver
220-
__replacerSlot__(pascalCase) // LivesDownByTheRiver
221-
__replacerSlot__(pathCase) // lives/down/by/the/river
222-
__replacerSlot__(sentenceCase) // Lives down by the river
223-
__replacerSlot__(snakeCase) // lives_down_by_the_river
224-
__replacerSlot__(titleCase) // Lives Down By The River
225-
226-
// Note: you can set a 'defaultCase' converter in IConfigItem so all
227-
// Replacer Slots without a Case Converter will be transformed the same way.
228-
__replacerSlot__ // LivesDownByTheRiver
211+
```js
212+
// If you typed in 'Lives down BY the River' for the a Replacer Slot named '__replacerSlot__' and
213+
// used one of the optional Case Converters you would get the following:
214+
215+
__replacerSlot__(noCase) // Lives down BY the River
216+
__replacerSlot__(camelCase) // livesDownByTheRiver
217+
__replacerSlot__(constantCase) // LIVES_DOWN_BY_THE_RIVER
218+
__replacerSlot__(dotCase) // lives.down.by.the.river
219+
__replacerSlot__(kebabCase) // lives-down-by-the-river
220+
__replacerSlot__(lowerCase) // livesdownbytheriver
221+
__replacerSlot__(pascalCase) // LivesDownByTheRiver
222+
__replacerSlot__(pathCase) // lives/down/by/the/river
223+
__replacerSlot__(sentenceCase) // Lives down by the river
224+
__replacerSlot__(snakeCase) // lives_down_by_the_river
225+
__replacerSlot__(titleCase) // Lives Down By The River
226+
227+
// Note: you can set a 'defaultCase' converter in IConfigItem so all
228+
// Replacer Slots without a Case Converter will be transformed the same way.
229+
__replacerSlot__ // LivesDownByTheRiver
230+
```
229231

230232
One Rule: no spaces between the [Replacer Slots](#replacer-slots-or-ireplacerslotquestion) and [Case Converters](#case-converters). If there is a space, [Case Converters](#case-converters) will not work.
231233

0 commit comments

Comments
 (0)