-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make module source urls clickable in Markdown output
The main reason this was not already implemented, as outlined in #504 and linked discussions, was that modules sourced from git repositories, with urls like `[email protected]:...`, was rendered by Markdown as URL to an email address, if the url was just shown as `[.source](.source)`. The approach here is to detect if the module source starts with "git@", and, if so, replace that prefix with "https://", as well as replacing the first ":" with a "/".
- Loading branch information
1 parent
ba42be1
commit 1c0ad4f
Showing
19 changed files
with
77 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,25 +68,25 @@ The following Modules are called: | |
|
||
### bar | ||
|
||
Source: baz | ||
Source: [baz](baz) | ||
|
||
Version: 4.5.6 | ||
|
||
### foo | ||
|
||
Source: bar | ||
Source: [bar](bar) | ||
|
||
Version: 1.2.3 | ||
|
||
### baz | ||
|
||
Source: baz | ||
Source: [baz](baz) | ||
|
||
Version: 4.5.6 | ||
|
||
### foobar | ||
|
||
Source: [email protected]:module/path | ||
Source: [[email protected]:module/path](https://github.com/module/path) | ||
|
||
Version: v7.8.9 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,25 +68,25 @@ The following Modules are called: | |
|
||
### bar | ||
|
||
Source: baz | ||
Source: [baz](baz) | ||
|
||
Version: 4.5.6 | ||
|
||
### foo | ||
|
||
Source: bar | ||
Source: [bar](bar) | ||
|
||
Version: 1.2.3 | ||
|
||
### baz | ||
|
||
Source: baz | ||
Source: [baz](baz) | ||
|
||
Version: 4.5.6 | ||
|
||
### foobar | ||
|
||
Source: [email protected]:module/path | ||
Source: [[email protected]:module/path](https://github.com/module/path) | ||
|
||
Version: v7.8.9 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,25 +68,25 @@ The following Modules are called: | |
|
||
##### bar | ||
|
||
Source: baz | ||
Source: [baz](baz) | ||
|
||
Version: 4.5.6 | ||
|
||
##### foo | ||
|
||
Source: bar | ||
Source: [bar](bar) | ||
|
||
Version: 1.2.3 | ||
|
||
##### baz | ||
|
||
Source: baz | ||
Source: [baz](baz) | ||
|
||
Version: 4.5.6 | ||
|
||
##### foobar | ||
|
||
Source: [email protected]:module/path | ||
Source: [[email protected]:module/path](https://github.com/module/path) | ||
|
||
Version: v7.8.9 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,24 +4,24 @@ The following Modules are called: | |
|
||
### bar | ||
|
||
Source: baz | ||
Source: [baz](baz) | ||
|
||
Version: 4.5.6 | ||
|
||
### foo | ||
|
||
Source: bar | ||
Source: [bar](bar) | ||
|
||
Version: 1.2.3 | ||
|
||
### baz | ||
|
||
Source: baz | ||
Source: [baz](baz) | ||
|
||
Version: 4.5.6 | ||
|
||
### foobar | ||
|
||
Source: [email protected]:module/path | ||
Source: [[email protected]:module/path](https://github.com/module/path) | ||
|
||
Version: v7.8.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,25 +68,25 @@ The following Modules are called: | |
|
||
### <a name="module_bar"></a> [bar](#module_bar) | ||
|
||
Source: baz | ||
Source: [baz](baz) | ||
|
||
Version: 4.5.6 | ||
|
||
### <a name="module_foo"></a> [foo](#module_foo) | ||
|
||
Source: bar | ||
Source: [bar](bar) | ||
|
||
Version: 1.2.3 | ||
|
||
### <a name="module_baz"></a> [baz](#module_baz) | ||
|
||
Source: baz | ||
Source: [baz](baz) | ||
|
||
Version: 4.5.6 | ||
|
||
### <a name="module_foobar"></a> [foobar](#module_foobar) | ||
|
||
Source: [email protected]:module/path | ||
Source: [[email protected]:module/path](https://github.com/module/path) | ||
|
||
Version: v7.8.9 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,25 +68,25 @@ The following Modules are called: | |
|
||
### bar | ||
|
||
Source: baz | ||
Source: [baz](baz) | ||
|
||
Version: 4.5.6 | ||
|
||
### foo | ||
|
||
Source: bar | ||
Source: [bar](bar) | ||
|
||
Version: 1.2.3 | ||
|
||
### baz | ||
|
||
Source: baz | ||
Source: [baz](baz) | ||
|
||
Version: 4.5.6 | ||
|
||
### foobar | ||
|
||
Source: [email protected]:module/path | ||
Source: [[email protected]:module/path](https://github.com/module/path) | ||
|
||
Version: v7.8.9 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,25 +68,25 @@ The following Modules are called: | |
|
||
### bar | ||
|
||
Source: baz | ||
Source: [baz](baz) | ||
|
||
Version: 4.5.6 | ||
|
||
### foo | ||
|
||
Source: bar | ||
Source: [bar](bar) | ||
|
||
Version: 1.2.3 | ||
|
||
### baz | ||
|
||
Source: baz | ||
Source: [baz](baz) | ||
|
||
Version: 4.5.6 | ||
|
||
### foobar | ||
|
||
Source: [email protected]:module/path | ||
Source: [[email protected]:module/path](https://github.com/module/path) | ||
|
||
Version: v7.8.9 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,25 +68,25 @@ The following Modules are called: | |
|
||
### <a name="module_bar"></a> [bar](#module_bar) | ||
|
||
Source: baz | ||
Source: [baz](baz) | ||
|
||
Version: 4.5.6 | ||
|
||
### <a name="module_foo"></a> [foo](#module_foo) | ||
|
||
Source: bar | ||
Source: [bar](bar) | ||
|
||
Version: 1.2.3 | ||
|
||
### <a name="module_baz"></a> [baz](#module_baz) | ||
|
||
Source: baz | ||
Source: [baz](baz) | ||
|
||
Version: 4.5.6 | ||
|
||
### <a name="module_foobar"></a> [foobar](#module_foobar) | ||
|
||
Source: [email protected]:module/path | ||
Source: [[email protected]:module/path](https://github.com/module/path) | ||
|
||
Version: v7.8.9 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,10 +59,10 @@ followed by another line of text. | |
|
||
| Name | Source | Version | | ||
|------|--------|---------| | ||
| bar | baz | 4.5.6 | | ||
| foo | bar | 1.2.3 | | ||
| baz | baz | 4.5.6 | | ||
| foobar | [email protected]:module/path | v7.8.9 | | ||
| bar | [baz](baz) | 4.5.6 | | ||
| foo | [bar](bar) | 1.2.3 | | ||
| baz | [baz](baz) | 4.5.6 | | ||
| foobar | [[email protected]:module/path](https://github.com/module/path) | v7.8.9 | | ||
|
||
## Resources | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,10 +59,10 @@ followed by another line of text. | |
|
||
| Name | Source | Version | | ||
|------|--------|---------| | ||
| bar | baz | 4.5.6 | | ||
| foo | bar | 1.2.3 | | ||
| baz | baz | 4.5.6 | | ||
| foobar | [email protected]:module/path | v7.8.9 | | ||
| bar | [baz](baz) | 4.5.6 | | ||
| foo | [bar](bar) | 1.2.3 | | ||
| baz | [baz](baz) | 4.5.6 | | ||
| foobar | [[email protected]:module/path](https://github.com/module/path) | v7.8.9 | | ||
|
||
## Resources | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,10 +59,10 @@ followed by another line of text. | |
|
||
| Name | Source | Version | | ||
|------|--------|---------| | ||
| bar | baz | 4.5.6 | | ||
| foo | bar | 1.2.3 | | ||
| baz | baz | 4.5.6 | | ||
| foobar | [email protected]:module/path | v7.8.9 | | ||
| bar | [baz](baz) | 4.5.6 | | ||
| foo | [bar](bar) | 1.2.3 | | ||
| baz | [baz](baz) | 4.5.6 | | ||
| foobar | [[email protected]:module/path](https://github.com/module/path) | v7.8.9 | | ||
|
||
#### Resources | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
| Name | Source | Version | | ||
|------|--------|---------| | ||
| bar | baz | 4.5.6 | | ||
| foo | bar | 1.2.3 | | ||
| baz | baz | 4.5.6 | | ||
| foobar | [email protected]:module/path | v7.8.9 | | ||
| bar | [baz](baz) | 4.5.6 | | ||
| foo | [bar](bar) | 1.2.3 | | ||
| baz | [baz](baz) | 4.5.6 | | ||
| foobar | [[email protected]:module/path](https://github.com/module/path) | v7.8.9 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,10 +59,10 @@ followed by another line of text. | |
|
||
| Name | Source | Version | | ||
|------|--------|---------| | ||
| <a name="module_bar"></a> [bar](#module_bar) | baz | 4.5.6 | | ||
| <a name="module_foo"></a> [foo](#module_foo) | bar | 1.2.3 | | ||
| <a name="module_baz"></a> [baz](#module_baz) | baz | 4.5.6 | | ||
| <a name="module_foobar"></a> [foobar](#module_foobar) | [email protected]:module/path | v7.8.9 | | ||
| <a name="module_bar"></a> [bar](#module_bar) | [baz](baz) | 4.5.6 | | ||
| <a name="module_foo"></a> [foo](#module_foo) | [bar](bar) | 1.2.3 | | ||
| <a name="module_baz"></a> [baz](#module_baz) | [baz](baz) | 4.5.6 | | ||
| <a name="module_foobar"></a> [foobar](#module_foobar) | [[email protected]:module/path](https://github.com/module/path) | v7.8.9 | | ||
|
||
## Resources | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,10 +59,10 @@ followed by another line of text. | |
|
||
| Name | Source | Version | | ||
|------|--------|---------| | ||
| bar | baz | 4.5.6 | | ||
| foo | bar | 1.2.3 | | ||
| baz | baz | 4.5.6 | | ||
| foobar | [email protected]:module/path | v7.8.9 | | ||
| bar | [baz](baz) | 4.5.6 | | ||
| foo | [bar](bar) | 1.2.3 | | ||
| baz | [baz](baz) | 4.5.6 | | ||
| foobar | [[email protected]:module/path](https://github.com/module/path) | v7.8.9 | | ||
|
||
## Resources | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,10 +59,10 @@ followed by another line of text. | |
|
||
| Name | Source | Version | | ||
|------|--------|---------| | ||
| bar | baz | 4.5.6 | | ||
| foo | bar | 1.2.3 | | ||
| baz | baz | 4.5.6 | | ||
| foobar | [email protected]:module/path | v7.8.9 | | ||
| bar | [baz](baz) | 4.5.6 | | ||
| foo | [bar](bar) | 1.2.3 | | ||
| baz | [baz](baz) | 4.5.6 | | ||
| foobar | [[email protected]:module/path](https://github.com/module/path) | v7.8.9 | | ||
|
||
## Resources | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,10 +59,10 @@ followed by another line of text. | |
|
||
| Name | Source | Version | | ||
|------|--------|---------| | ||
| <a name="module_bar"></a> [bar](#module_bar) | baz | 4.5.6 | | ||
| <a name="module_foo"></a> [foo](#module_foo) | bar | 1.2.3 | | ||
| <a name="module_baz"></a> [baz](#module_baz) | baz | 4.5.6 | | ||
| <a name="module_foobar"></a> [foobar](#module_foobar) | [email protected]:module/path | v7.8.9 | | ||
| <a name="module_bar"></a> [bar](#module_bar) | [baz](baz) | 4.5.6 | | ||
| <a name="module_foo"></a> [foo](#module_foo) | [bar](bar) | 1.2.3 | | ||
| <a name="module_baz"></a> [baz](#module_baz) | [baz](baz) | 4.5.6 | | ||
| <a name="module_foobar"></a> [foobar](#module_foobar) | [[email protected]:module/path](https://github.com/module/path) | v7.8.9 | | ||
|
||
## Resources | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters