link

Create Markdown links from a URL, array, or object.

Syntax

{{ value | link }}{{ value | link:"Link text" }}

Example

01

Basic usage

InputTS
1{2  "url": "https://example.com"3}
TemplateKNAP
1{{ url | link:"Example" }}
OutputKNAP
1[Example](https://example.com)

Behavior

  • The optional parameter is link text for string and array inputs.