You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 752d13a
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -27,9 +29,7 @@ The following syntaxes are supported:
27
29
<span>Absolute path</span>
28
30
</div>
29
31
30
-
## Syntax Reference
31
-
32
-
### Basic
32
+
## Basic Syntax
33
33
34
34
The syntax is the same as what [Internal links - Obsidian Help](https://help.obsidian.md/Linking+notes+and+files/Internal+links) supported and simple to write:
35
35
@@ -41,6 +41,8 @@ The `Bi-directional Links Example Page` is the file name of the target page. The
41
41
42
42
[[Bi-directional Links Example Page]]
43
43
44
+
## link url
45
+
44
46
### Hash tags
45
47
46
48
::: info What is the targeted title? How does this feature work?
@@ -81,6 +83,10 @@ The rendered result will be:
81
83
82
84
[[Bi-directional Links Example Page#section-2]]
83
85
86
+
Or leave the page section blank and directly fill in `#<heading>` to indicate a jump to the specified heading of the current page, such as:
87
+
88
+
[[#basic-syntax]]
89
+
84
90
### Query strings
85
91
86
92
Beyond the default behaviors that Obsidian supported, we also support query strings in the link target. This is useful when you have a inner Vue component or JavaScript logic that can handle the query strings as part of the automation:
@@ -93,7 +99,19 @@ The rendered result will be:
93
99
94
100
[[Bi-directional Links Example Page?query=string]]
95
101
96
-
### Image
102
+
### Absolute path
103
+
104
+
```markdown
105
+
[[Some Full Path Reference to Your Page]]
106
+
```
107
+
108
+
Demo
109
+
110
+
[[pages/en/integrations/markdown-it-bi-directional-links/Bi-directional Links Example Page]]
111
+
112
+
### Show Image
113
+
114
+
Adding `!` in front of `[[...]]` can display the picture, video, audio.
97
115
98
116
```markdown
99
117
![[foxtail field.jpg]]
@@ -103,6 +121,24 @@ Demo
103
121
104
122
![[foxtail field.jpg]]
105
123
124
+
## Additional attributes
125
+
126
+
This part is optional.
127
+
128
+
### Media Size
129
+
130
+
(It takes effect for pictures and video links)
131
+
132
+
```markdown
133
+
![[foxtail field.jpg|pic alt(option)|200x200]]
134
+
```
135
+
136
+
Among them, `200x0` or `0x200` respectively indicate setting only the width or heigh.
137
+
138
+
Demo
139
+
140
+
![[foxtail field.jpg|pic alt(option)|200x200]]
141
+
106
142
### Custom Text
107
143
108
144
```markdown
@@ -113,6 +149,10 @@ Demo
113
149
114
150
[[Bi-directional Links Example Page|Custom Text]]
115
151
152
+
For jump links, this is the displayed text.
153
+
For the display of pictures or videos, etc., this is the alt attribute.
154
+
(It is displayed when the object cannot be rendered)
155
+
116
156
#### Use Markdown markup in custom text
117
157
118
158
```markdown
@@ -169,17 +209,9 @@ Demo
169
209
170
210
[[Bi-directional Links Example Page]]{.custom-class}
171
211
172
-
### Absolute path
212
+
##More demo
173
213
174
-
```markdown
175
-
[[Some Full Path Reference to Your Page]]
176
-
```
177
-
178
-
Demo
179
-
180
-
[[pages/en/integrations/markdown-it-bi-directional-links/Bi-directional Links Example Page]]
181
-
182
-
#### Image with absolute path
214
+
### Image with absolute path
183
215
184
216
```markdown
185
217
![[en/integrations/markdown-it-bi-directional-links/images/railway near by beach same name.jpg]]
@@ -199,7 +231,7 @@ Demo
199
231
200
232
![[pages/en/integrations/markdown-it-bi-directional-links/images/same-name/railway near by beach same name.jpg]]
0 commit comments