README.md in redcarpet-form-extension-0.1.3 vs README.md in redcarpet-form-extension-0.2.0
- old
+ new
@@ -25,14 +25,14 @@
markdown = Redcarpet::Markdown.new(Redcarpet::Form::Extension::Render::HTML)
```
### Input (inline)
-Use the follwoing snap code to add an input tag in your html. By default, tag attributes are `type="text" name=""` but you can use `{}` to pass the attributes you need:
+Use the follwoing snap code to add an input tag in your html. By default, tag attributes are `type="text" name="[random_string]"` but you can use `{}` to pass the attributes you need:
```txt
-Some text before ____{ type="number" } and after.
+Some text before [input]{ type="number" } and after.
```
Returns:
```html
@@ -42,11 +42,11 @@
### Checkboxes
Also, you can create your fieldset of checkboxes:
```text
-[]{value="bike"} I have a bike [x]{value="car"} I have a car [x]{value="boat"} I have a boat
+[]{ value="bike" } I have a bike [x]{ value="car" } I have a car [x]{ value="boat" } I have a boat
```
This snap returns the following HTML:
```html
@@ -84,10 +84,10 @@
### Textarea
Finally, a textarea can be generated using the follwing snap:
```txt
-[textarea]{value="Hello world!" rows="4" cols="10"} Text box
+[textarea]{ value="Hello world!" rows="4" cols="10" } Text box
```
The HTML result is:
```html