Skip to content

Commit 4c6e6ea

Browse files
akd-iojelbourn
authored andcommitted
docs(icon): fix unescaped <img> tags in overview (#17250)
The <img> tag is currently not escaped and therefore rendered as html. By putting it inside a code-block we can make it render as code, so the reader is able to see it.
1 parent f30d26f commit 4c6e6ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/icon/icon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ explicitly set by calling `MatIconRegistry.setDefaultFontSetClass`.
3838
### SVG icons
3939

4040
When an `mat-icon` component displays an SVG icon, it does so by directly inlining the SVG content
41-
into the page as a child of the component. (Rather than using an <img> tag or a div background
41+
into the page as a child of the component. (Rather than using an `<img>` tag or a div background
4242
image). This makes it easier to apply CSS styles to SVG icons. For example, the default color of the
4343
SVG content is the CSS
4444
[currentColor](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#currentColor_keyword)

0 commit comments

Comments
 (0)