File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ Requirejs-dplugins provides a set of AMD plugins compatible with requirejs and g
1111* [ jquery] ( jquery.md ) - loads the jquery modules if they are not loaded already.
1212* [ maybe] ( maybe.md ) - requires modules that may or may not exist.
1313* [ Promise] ( Promise.md ) - provides ES6 Promise implementation.
14+ * [ svg] ( svg.md ) - loads an svg graphic.
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ define([
1919```
2020
2121This will fetch ` icon1.svg ` and ` icon2.svg ` and define two symbols in the DOM
22- ``` svg
22+ ``` xml
2323<svg >
2424 ...
2525 <symbol id =" icon1" viewBox =" ..." > ... </symbol >
@@ -29,7 +29,7 @@ This will fetch `icon1.svg` and `icon2.svg` and define two symbols in the DOM
2929
3030You can then use the icons anytime with
3131
32- ```
32+ ``` xml
3333<svg >
3434 <use xlink : href =" #icon1" ></use >
3535</svg >
@@ -40,7 +40,7 @@ It should also have a `viewBox` attribute.
4040
4141As an example, here is the minimal markup your graphic should follow:
4242
43- ``` svg
43+ ``` xml
4444<svg id =" my-graphic" viewBox =" 0 0 80 120" > ... </svg >
4545```
4646
You can’t perform that action at this time.
0 commit comments