|
4 | 4 |
|
5 | 5 | [[Bi-directional Links Example Page]] |
6 | 6 |
|
| 7 | +Custom text: [[Bi-directional Links Example Page|Custom Text]] |
| 8 | + |
| 9 | +Compatible to modify the HTML attributes [[Bi-directional Links Example Page|Custom Attrs]]{style="color: red;"} |
| 10 | + |
| 11 | +Obsidian same name pages: [[pages/en/integrations/markdown-it-bi-directional-links/same-name/Bi-directional Links Example Same Name Page|Bi-directional Links Example Same Name Page]] 和 [[pages/en/integrations/markdown-it-bi-directional-links/Bi-directional Links Example Same Name Page|Bi-directional Links Example Same Name Page]] |
| 12 | + |
| 13 | +Absolute Path: [[pages/en/integrations/markdown-it-bi-directional-links/Bi-directional Links Example Page]] |
| 14 | + |
7 | 15 | ## Introduction |
8 | 16 |
|
9 | 17 | **Bi-directional links** (also known as internal links), and another concept you may know and hear about [WikiLinks](https://en.wikipedia.org/wiki/Help:Link), holds a important place in the document engineering area. It is usually used to quickly establish a connection (or link) from one page to another page, and widely used in Wiki pages such as [Wikipedia](https://wikipedia.org), and now days popular tools such as [Obsidian](https://obsidian.md/) and [Logseq](https://logseq.com/). |
10 | 18 |
|
11 | | -This plugin is a compatible implementation version of [Obsidian](https://obsidian.md)'s [internal links](https://help.obsidian.md/Linking+notes+and+files/Internal+links), it follows two rules: |
| 19 | +This plugin is a fully featured compatible implementation version of [Obsidian](https://obsidian.md)'s [internal links](https://help.obsidian.md/Linking+notes+and+files/Internal+links), it follows two rules: |
12 | 20 |
|
13 | 21 | 1. A page's file name (without extension) can be used as a link target, for example: `[[Bi-directional Links Example Page]]` will be parsed as a link to the globally unique `Bi-directional Links Example Page.md` file. |
14 | 22 | 2. A link target can be an absolute path, for example: `[[Some Folder/Bi-directional Links Example Page]]` will be parsed as a link to `Some Folder/Bi-directional Links Example Page.md`, usually appears when you have multiple files with the same name. |
15 | 23 |
|
16 | | -### Example |
| 24 | +### Examples |
| 25 | + |
| 26 | +<br> |
| 27 | + |
| 28 | +#### Basic |
17 | 29 |
|
18 | 30 | ```markdown |
19 | 31 | [[Target Page File Name]] |
20 | 32 | ``` |
21 | 33 |
|
| 34 | +Demo |
| 35 | + |
| 36 | +[[Bi-directional Links Example Page]] |
| 37 | + |
| 38 | +#### Custom Text |
| 39 | + |
| 40 | +```markdown |
| 41 | +[[Target Page File Name|Custom Text]] |
| 42 | +``` |
| 43 | + |
| 44 | +Demo |
| 45 | + |
| 46 | +[[Bi-directional Links Example Page|Custom Text]] |
| 47 | + |
| 48 | +#### Compatible with [`markdown-it-attrs`](https://github.com/arve0/markdown-it-attrs) to modify HTML attributes |
| 49 | + |
| 50 | +<br> |
| 51 | + |
| 52 | +##### Change color |
| 53 | + |
| 54 | +```markdown |
| 55 | +[[Target Page File Name]]{style="color: red;"} |
| 56 | +``` |
| 57 | + |
| 58 | +Demo |
| 59 | + |
| 60 | +[[Bi-directional Links Example Page]]{style="color: red;"} |
| 61 | + |
| 62 | +##### Change class name |
| 63 | + |
| 64 | +```markdown |
| 65 | +[[Target Page File Name]]{.custom-class} |
| 66 | +``` |
| 67 | + |
| 68 | +Demo |
| 69 | + |
| 70 | +[[Bi-directional Links Example Page]]{.custom-class} |
| 71 | + |
| 72 | +### Absolute path |
| 73 | + |
| 74 | +```markdown |
| 75 | +[[Some Full Path Reference to Your Page]] |
| 76 | +``` |
| 77 | + |
| 78 | +Demo |
| 79 | + |
| 80 | +[[pages/en/integrations/markdown-it-bi-directional-links/Bi-directional Links Example Page]] |
| 81 | + |
| 82 | +### Absolute path with custom text |
| 83 | + |
| 84 | +```markdown |
| 85 | +[[Some Full Path Reference to Your Page|Custom Text]] |
| 86 | +``` |
| 87 | + |
| 88 | +Demo |
| 89 | + |
| 90 | +[[pages/en/integrations/markdown-it-bi-directional-links/Bi-directional Links Example Page|Custom Text]] |
| 91 | + |
22 | 92 | ## How to use |
23 | 93 |
|
24 | 94 | ### Installation |
|
0 commit comments