File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed 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
11
11
* [ jquery] ( jquery.md ) - loads the jquery modules if they are not loaded already.
12
12
* [ maybe] ( maybe.md ) - requires modules that may or may not exist.
13
13
* [ 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([
19
19
```
20
20
21
21
This will fetch ` icon1.svg ` and ` icon2.svg ` and define two symbols in the DOM
22
- ``` svg
22
+ ``` xml
23
23
<svg >
24
24
...
25
25
<symbol id =" icon1" viewBox =" ..." > ... </symbol >
@@ -29,7 +29,7 @@ This will fetch `icon1.svg` and `icon2.svg` and define two symbols in the DOM
29
29
30
30
You can then use the icons anytime with
31
31
32
- ```
32
+ ``` xml
33
33
<svg >
34
34
<use xlink : href =" #icon1" ></use >
35
35
</svg >
@@ -40,7 +40,7 @@ It should also have a `viewBox` attribute.
40
40
41
41
As an example, here is the minimal markup your graphic should follow:
42
42
43
- ``` svg
43
+ ``` xml
44
44
<svg id =" my-graphic" viewBox =" 0 0 80 120" > ... </svg >
45
45
```
46
46
You can’t perform that action at this time.
0 commit comments