[formatter] add 'R' conversion - extract URLs (#8125)

This commit is contained in:
Mike Fährmann
2025-08-26 16:44:22 +02:00
parent a953d3d316
commit 9309204d9b
3 changed files with 21 additions and 6 deletions

View File

@@ -201,6 +201,12 @@ Conversion specifiers allow to *convert* the value to a different form or type.
<td><code>{html!H}</code></td>
<td><code>foo &amp; bar</code></td>
</tr>
<tr>
<td align="center"><code>R</code></td>
<td>Extract URLs</td>
<td><code>{lorem!R}</code></td>
<td><code>["https://example.org/"]</code></td>
</tr>
<tr>
<td align="center"><code>s</code></td>
<td>Convert value to <a href="https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str" rel="nofollow"><code>str</code></a></td>