README.md in inline_svg-0.5.1 vs README.md in inline_svg-0.5.2
- old
+ new
@@ -62,22 +62,20 @@
width: 5em;
height: 5em;
}
```
-## Options
-* `id`: set a ID attribute on the SVG
-* `class`: set a CSS class attribute on the SVG
-* `data`: add data attributes to the SVG (supply as a hash)
-* `size`: set width and height attributes on the SVG
- * Can also be set using `height` and/or `width` attributes, which take
- precedence over `size`
- * Supplied as "{Width} * {Height}" or "{Number}", so "30px*45px" becomes `width="30px"`
- and `height="45px"`, and "50%" becomes `width="50%"` and `height="50%"`
-* `title`: add a \<title\> node inside the top level of the SVG document
-* `desc`: add a \<desc\> node inside the top level of the SVG document
-* `nocomment`: remove comment tags (and other unsafe/unknown tags) from svg
- (uses the [Loofah](https://github.com/flavorjones/loofah) gem)
+## Options
+
+key | description
+:------- | :----------
+`id` | set a ID attribute on the SVG
+`class` | set a CSS class attribute on the SVG
+`data` | add data attributes to the SVG (supply as a hash)
+`size` | set width and height attributes on the SVG <br/> Can also be set using `height` and/or `width` attributes, which take precedence over `size` <br/> Supplied as "{Width} * {Height}" or "{Number}", so "30px*45px" becomes `width="30px"` and `height="45px"`, and "50%" becomes `width="50%"` and `height="50%"`
+`title` | add a \<title\> node inside the top level of the SVG document
+`desc` | add a \<desc\> node inside the top level of the SVG document
+`nocomment` | remove comment tags (and other unsafe/unknown tags) from svg (uses the [Loofah](https://github.com/flavorjones/loofah) gem)
Example:
```
inline_svg("some-document.svg", id: 'some-id', class: 'some-class', data: {some: "value"}, size: '30% * 20%', title: 'Some Title', desc: