shelving
Version:
Toolkit for using data in JavaScript.
18 lines (17 loc) • 1.31 kB
TypeScript
/**
* Markdown-style link.
* - Link in standard Markdown format, e.g. `[Google Maps](http://google.com/maps)`
* - If no title is specified a cleaned up version of the URL will be used, e.g. `google.com/maps`
* - Does not need space before/after the link.
* - If link is not valid (using `new URL(url)` then unparsed text will be returned.
* - For security only schemes that appear in `MarkupOptions.schemes` will match (defaults to `http:` and `https:`).
*/
export declare const LINK_RULE: import("../MarkupRule.js").MarkupRule;
/**
* Autolinked URL starts with `scheme:` (any scheme in `MarkupOptions.schemes`) and matches an unlimited number of non-space characters.
* - If followed by space and then text in `()` round or `[]` square brackets that will be used as the title, e.g. `http://google.com/maps (Google Maps)` or `http://google.com/maps [Google Maps]` (this syntax is from Todoist and maybe other things too).
* - If no title is specified a cleaned up version of the URL will be used, e.g. `google.com/maps`
* - If link is not valid (using `new URL(url)` then unparsed text will be returned.
* - For security only schemes that appear in `MarkupOptions.schemes` will match (defaults to `http:` and `https:`).
*/
export declare const AUTOLINK_RULE: import("../MarkupRule.js").MarkupRule;