-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for GitLab, Bitbucket repositories
- Loading branch information
Showing
11 changed files
with
581 additions
and
216 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
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Hello | ||
|
||
This is a valid relative heading [link](#markdown-header-hello). | ||
|
||
This is an invalid relative heading [link](#markdown-header-world). | ||
|
||
## Files | ||
|
||
This is a valid relative file [link](https://bitbucket.org/wooorm/test/src/master/examples/bitbucket.md). | ||
|
||
So is this [link](https://bitbucket.org/wooorm/test/src/foo-bar/examples/bitbucket.md). | ||
|
||
And this [link](./examples/bitbucket.md). | ||
|
||
And this [link](examples/bitbucket.md). | ||
|
||
This is a valid external [file](../index.js). | ||
|
||
This is an invalid relative file [link](https://bitbucket.org/wooorm/test/src/master/examples/world.md). | ||
|
||
So is this [link](https://bitbucket.org/wooorm/test/src/foo-bar/examples/world.md). | ||
|
||
And this [link](./examples/world.md). | ||
|
||
And this [link](examples/world.md). | ||
|
||
## Combination | ||
|
||
Valid: [a](./examples/bitbucket.md#markdown-header-hello). | ||
|
||
Valid: [b](examples/bitbucket.md#markdown-header-hello). | ||
|
||
Valid: [c](https://bitbucket.org/wooorm/test/src/master/examples/bitbucket.md#markdown-header-hello). | ||
|
||
Valid: [d](https://bitbucket.org/wooorm/test/src/foo-bar/examples/bitbucket.md#markdown-header-hello). | ||
|
||
Invalid: [e](./examples/bitbucket.md#markdown-header-world). | ||
|
||
Invalid: [f](examples/bitbucket.md#markdown-header-world). | ||
|
||
Invalid: [g](https://bitbucket.org/wooorm/test/src/master/examples/bitbucket.md#markdown-header-world). | ||
|
||
Invalid: [h](https://bitbucket.org/wooorm/test/src/foo-bar/examples/bitbucket.md#markdown-header-world). | ||
|
||
Invalid: [i](./examples/world.md#markdown-header-hello). | ||
|
||
Invalid: [j](examples/world.md#markdown-header-hello). | ||
|
||
Invalid: [k](https://bitbucket.org/wooorm/test/src/master/examples/world.md#markdown-header-hello). | ||
|
||
Invalid: [l](https://bitbucket.org/wooorm/test/src/foo-bar/examples/world.md#markdown-header-hello). | ||
|
||
## External | ||
|
||
These are all invalid, because they do not link to Bitbucket. | ||
|
||
Valid: [a](irc://foo). | ||
|
||
Valid: [b](http://example.com). | ||
|
||
Valid: [b](http://example.com/foo/bar/baz). | ||
|
||
Valid: [b](http://github.com/wooorm/test/blob/foo-bar/examples/world.md#markdown-header-hello). |
Oops, something went wrong.