linkify
Stentor API Reference / stentor-utils/src / linkify
Function: linkify()
linkify(
text,format):string
Defined in: packages/stentor-utils/src/net.ts:98
Searches for URLs in a text and converts them to hyperlinks, either for HTML or markdown (default)
Based on https://stackoverflow.com/a/25821576/1349766
Parameters​
text​
string
format​
"html" | "markdown"
Returns​
string