Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support reference-style linking in documents (#1048)
feat: support reference-style linking in documents
- Loading branch information
Showing
7 changed files
with
180 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
id: reflinks | ||
title: Reference Links | ||
--- | ||
|
||
### Existing Docs | ||
|
||
- [doc1][doc1] | ||
- [doc2][doc2] | ||
|
||
### Non-existing Docs | ||
|
||
- [hahaha][hahaha] | ||
|
||
## Repeating Docs | ||
|
||
- [doc1][doc1] | ||
- [doc2][doc2] | ||
|
||
## Do not replace this | ||
```md | ||
![image1][image1] | ||
``` | ||
|
||
```js | ||
const doc1 = foo(); | ||
console.log("[image2][image2]"); | ||
const testStr = `![image3][image3]`; | ||
``` | ||
|
||
[doc1]: doc1.md | ||
[doc2]: ./doc2.md | ||
[hahaha]: hahaha.md | ||
[image1]: assets/image1.png | ||
[image2]: assets/image2.jpg | ||
[image3]: assets/image3.gif |
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
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