Skip to content

Commit a7586b6

Browse files
committed
Use GitHub alerts Markdown syntax [skip ci]
1 parent bbc06fa commit a7586b6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

USAGE.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ response.mime_type #=> String
5454
response.uri #=> HTTP::URI
5555
```
5656

57-
💡 **Note:** `Webmention::Response` objects may return a variety of status codes that will vary depending on the endpoint's capabilities and the success or failure of the request. See [the Webmention spec](https://www.w3.org/TR/webmention/) for more on status codes on their implications. A `Webmention::Response` responding affirmatively to `ok?` _may_ also have a non-successful HTTP status code (e.g. `404 Not Found`).
57+
> [!NOTE]
58+
> `Webmention::Response` objects may return a variety of status codes that will vary depending on the endpoint's capabilities and the success or failure of the request. See [the Webmention spec](https://www.w3.org/TR/webmention/) for more on status codes on their implications. A `Webmention::Response` responding affirmatively to `ok?` _may_ also have a non-successful HTTP status code (e.g. `404 Not Found`).
5859
5960
## Sending multiple webmentions
6061

@@ -93,7 +94,8 @@ urls = Webmention.mentioned_urls("https://jgarber.example/post/100")
9394

9495
When parsing HTML documents, webmention-client-ruby will find the first [h-entry](https://microformats.org/wiki/h-entry) and search its markup for URLs. If no h-entry is found, the parser will search the document's `<body>`.
9596

96-
💡 **Note:** Links pointing to the supplied URL (or those with internal fragment identifiers) will be rejected. You may wish to additionally filter the results returned by `Webmention.mentioned_urls` before sending webmentions.
97+
> [!NOTE]
98+
> Links pointing to the supplied URL (or those with internal fragment identifiers) will be rejected. You may wish to additionally filter the results returned by `Webmention.mentioned_urls` before sending webmentions.
9799
98100
## Verifying a webmention
99101

@@ -141,7 +143,8 @@ verification.verify_vouch?
141143
verification.vouch_mentions_source?
142144
```
143145

144-
💡 **Note:** `Webmention.verify_webmention` parses HTML documents using the same rules outlined in [Discovering mentioned URLs](#discovering-mentioned-urls).
146+
> [!NOTE]
147+
> `Webmention.verify_webmention` parses HTML documents using the same rules outlined in [Discovering mentioned URLs](#discovering-mentioned-urls).
145148
146149
## Exception Handling
147150

0 commit comments

Comments
 (0)