From 7f6664708c7872b47eaa3c328e329a36feb5ed68 Mon Sep 17 00:00:00 2001 From: Matthew Harris Date: Tue, 27 Aug 2019 21:50:56 +0700 Subject: [PATCH] docs(img): unencoded img tag in readme (#19172) --- core/src/components.d.ts | 4 ++-- core/src/components/img/img.tsx | 2 +- core/src/components/img/readme.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/components.d.ts b/core/src/components.d.ts index 33562ca43d8..3fb87a7c013 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -880,7 +880,7 @@ export namespace Components { */ 'alt'?: string; /** - * The image URL. This attribute is mandatory for the element. + * The image URL. This attribute is mandatory for the `` element. */ 'src'?: string; } @@ -4373,7 +4373,7 @@ declare namespace LocalJSX { */ 'onIonImgWillLoad'?: (event: CustomEvent) => void; /** - * The image URL. This attribute is mandatory for the element. + * The image URL. This attribute is mandatory for the `` element. */ 'src'?: string; } diff --git a/core/src/components/img/img.tsx b/core/src/components/img/img.tsx index 538b0fa5465..55fe1d3cb71 100644 --- a/core/src/components/img/img.tsx +++ b/core/src/components/img/img.tsx @@ -25,7 +25,7 @@ export class Img implements ComponentInterface { @Prop() alt?: string; /** - * The image URL. This attribute is mandatory for the element. + * The image URL. This attribute is mandatory for the `` element. */ @Prop() src?: string; @Watch('src') diff --git a/core/src/components/img/readme.md b/core/src/components/img/readme.md index 3111060848d..55814b9868e 100644 --- a/core/src/components/img/readme.md +++ b/core/src/components/img/readme.md @@ -73,7 +73,7 @@ export const ImgExample: React.FC = () => ( | Property | Attribute | Description | Type | Default | | -------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------- | ----------- | | `alt` | `alt` | This attribute defines the alternative text describing the image. Users will see this text displayed if the image URL is wrong, the image is not in one of the supported formats, or if the image is not yet downloaded. | `string \| undefined` | `undefined` | -| `src` | `src` | The image URL. This attribute is mandatory for the element. | `string \| undefined` | `undefined` | +| `src` | `src` | The image URL. This attribute is mandatory for the `` element. | `string \| undefined` | `undefined` | ## Events