link
A Markdown link [text](url), with the characters that would break it made safe.
In text, backslashes and square brackets are escaped. In url, spaces, parentheses, angle
brackets and line breaks are percent-encoded (%20, %28, %29, %3C, %3E, %0A), so a
URL such as https://example.com/a (b) cannot end the link early. Nothing else in the URL is
touched, and no link title is written.
Import
Section titled “Import”Cargo feature markdown (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
text | &str | The visible text of the link. |
url | &str | The destination. |
Returns
Section titled “Returns”String — The link, for instance [docs](https://helpers4.dev/rust/).
