... | ... | @@ -166,6 +166,9 @@ AND |
|
|
|
|
|
# Link handling
|
|
|
|
|
|
XSweet can recognize hyperlinks. To create a hyperlink, XSweet must find:
|
|
|
1. text that looks like a URL (DEFINE)
|
|
|
2. must be somehow distinguished from the surrounding text (e.g. different font or formatting) (DEFINE) |
|
|
\ No newline at end of file |
|
|
XSweet will extract existing hyperlinks from .docx files.
|
|
|
|
|
|
XSweet can also recognize hyperlinks. XSweet will recognize and add a link to any text that:
|
|
|
1. ends in a recognized top-level domain. Currently XSweet recognizes `com`, `org`, `net`, `gov`, `mil`, `edu`, `io`, `foundation`
|
|
|
2. The top level domain is preceded by preceded by one or more strings that contain only letters, numbers, underscores and dashes (no spaces or other punctuation). These strings can be separated by periods (".") Note that this rule will capture a "www." if it is present.
|
|
|
3. Additionally, XSweet will recognizes and include in the link the protocol, if it has been specified (`http://`, `https://`, `ftp:`). If the protocol has not bene specified, the link's `href` will be appended with "http://" |
|
|
\ No newline at end of file |