makelinks
makelinks
substitutes all appearances of web addresses or mail links
with a real link tag. Web addresses and mail links must be contained in
the text in the following form:
https://example.org
mailto:name@example.org
Properties
http
Substitutes all external web addresses with a link tag so they are displayed as a link.
Can handle links of the form:
https://example.org
http://example.org
http.extTarget
http.extTarget
-
- Type
- string
- Default
- _top
The target of the link.
http.wrap
http.wrap
http.ATagBeforeWrap
http.ATagBeforeWrap
-
- Type
- boolean
- Default
- 0
If set, the link is first wrapped with
http.
and then thewrap <a>
tag.
http.keep
http.keep
-
- Type
- list: "scheme","path","query"
As default the link-text will be the full domain-name of the link.
ExamplesWith the URL
https://
in our text we will get the following results:example. org/ test/ doc. php?id=3 http.keep = "": # example.org http.keep = "scheme": # https://example.org http.keep = "scheme,path": # https://example.org/test/doc.php http.keep = "scheme,path,query": # https://example.org/test/doc.php?id=3
Copied!
http.ATagParams
http.ATagParams
-
- Type
- string / stdWrap
Additional parameters
Exampleshttp.ATagParams = class="board"
Copied!
mailto
Substitutes all appearances of mail addresses with a link tag. Mail addresses must be contained in the text in the following form:
mailto:name@example.org
mailto.wrap
mailto.wrap
mailto.ATagBeforeWrap
mailto.ATagBeforeWrap
-
- Type
- boolean
- Default
- 0
If set, the link is first wrapped with mailto
wrap
and then the<a>
tag.
mailto.ATagParams
mailto.ATagParams
-
- Type
- string / stdWrap
Additional parameters
Examplesmailto.ATagParams = class="board"
Copied!