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
Copied!
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
Copied!
http.extTarget¶
- Property
- http.extTarget
- Data type
- target
- Description
- The target of the link.
- Default
- _top
http.wrap¶
http.ATagBeforeWrap¶
- Property
- http.ATagBeforeWrap
- Data type
- boolean
- Description
- If set, the link is first wrapped with
http.wrap
and then the<a>
-tag. - Default
- 0
http.keep¶
- Property
- http.keep
- Data type
- list: "scheme","path","query"
- Description
- As default the link-text will be the full domain-name of the link.
- Example
-
With the URL
https://example.org/test/doc.php?id=3
in our text we will get the following results: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¶
- Property
- http.ATagParams
- Data type
- tag-params / stdWrap
- Description
- Additional parameters
- Example
-
http.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
Copied!
mailto.wrap¶
mailto.ATagBeforeWrap¶
- Property
- mailto.ATagBeforeWrap
- Data type
- boolean
- Description
- If set, the link is first wrapped with mailto
wrap
and then the<a>
-tag. - Default
- 0
mailto.ATagParams¶
- Property
- mailto.ATagParams
- Data type
- tag-params / stdWrap
- Description
- Additional parameters
- Example
-
mailto.ATagParams = class="board"
Copied!