Skip to content

Commit 2a90d0b

Browse files
📖 amp-list: fix amp.dev docs syntax errors (ampproject#29554)
* 📖 amp-list: fix amp.dev docs syntax errors * Accomodate prettier suggestions * Enable Validation section for all formats * Use correct white spaces
1 parent ce4569e commit 2a90d0b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

extensions/amp-list/amp-list.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ An `<amp-list-load-more>` element with the `load-more-button` attribute, which s
298298
>
299299
...
300300
<amp-list-load-more load-more-button>
301-
<button>See More</button> /* My custom see more button */
301+
<!-- My custom see more button -->
302+
<button>See More</button>
302303
</amp-list-load-more>
303304
</amp-list>
304305
```
@@ -337,7 +338,8 @@ This element is a loader that will be displayed if the user reaches the end of t
337338
>
338339
...
339340
<amp-list-load-more load-more-loading>
340-
<svg>...</svg> /* My custom loader */
341+
<!-- My custom loader -->
342+
<svg>...</svg>
341343
</amp-list-load-more>
342344
</amp-list>
343345
```
@@ -392,7 +394,8 @@ This element is not provided by default, but if a `<amp-list-load-more>` element
392394
>
393395
...
394396
<amp-list-load-more load-more-end>
395-
Congratulations! You've reached the end. /* Custom load-end element */
397+
<!-- Custom load-end element -->
398+
Congratulations! You've reached the end.
396399
</amp-list-load-more>
397400
</amp-list>
398401
```
@@ -573,8 +576,6 @@ The AMP for Email spec disallows the use of the following attributes on the AMP
573576

574577
[/filter] <!-- formats="email" -->
575578

576-
[filter formats="websites, stories"]
577-
578579
## Validation
579580

580581
See [amp-list rules](https://github.com/ampproject/amphtml/blob/master/extensions/amp-list/validator-amp-list.protoascii) in the AMP validator specification.

0 commit comments

Comments
 (0)