Skip to content

Commit

Permalink
docs(bi-directional-links): fixed orders and levels
Browse files Browse the repository at this point in the history
Signed-off-by: Neko Ayaka <neko@ayaka.moe>
  • Loading branch information
nekomeowww committed Apr 7, 2024
1 parent a77fc14 commit b6fb83b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ The following syntaxes are supported:
<span>Absolute path</span>
</div>

## Basic
## Syntax Reference

### Basic

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:

Expand Down Expand Up @@ -105,7 +107,7 @@ Demo

[[Bi-directional Links Example Page|Custom Text]]

### Use Markdown markup in custom text
#### Use Markdown markup in custom text

```markdown
[[Some Full Path Reference to Your Page|`Code Block (Before)` Middle `Code Block (After)`]]
Expand All @@ -125,7 +127,7 @@ Demo

[[pages/en/integrations/markdown-it-bi-directional-links/Bi-directional Links Example Page|~~Strikethrough (Before)~~ Middle ~~Strikethrough (After)~~]]

### Use HTML markup in custom text
#### Use HTML markup in custom text

```markdown
[[pages/en/integrations/markdown-it-bi-directional-links/Bi-directional Links Example Page|<span style="color: red;">Custom HTML</span>]]
Expand Down Expand Up @@ -171,7 +173,7 @@ Demo

[[pages/en/integrations/markdown-it-bi-directional-links/Bi-directional Links Example Page]]

### Image with absolute path
#### Image with absolute path

```markdown
![[en/integrations/markdown-it-bi-directional-links/images/railway near by beach same name.jpg]]
Expand All @@ -191,7 +193,7 @@ Demo

![[pages/en/integrations/markdown-it-bi-directional-links/images/same-name/railway near by beach same name.jpg]]

### Absolute path with custom text
#### Absolute path with custom text

```markdown
[[Some Full Path Reference to Your Page|Custom Text]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ document.querySelector('#为什么')

[[pages/zh-CN/integrations/markdown-it-bi-directional-links/双向链接示例页面]]

### 图片配合绝对路径
#### 图片配合绝对路径

```markdown
![[zh-CN/integrations/markdown-it-bi-directional-links/images/海滩铁轨 同名图片.jpg]]
Expand All @@ -199,7 +199,7 @@ document.querySelector('#为什么')

![[pages/zh-CN/integrations/markdown-it-bi-directional-links/images/same-name/海滩铁轨 同名图片.jpg]]

### 绝对路径和自定义文案
#### 绝对路径和自定义文案

```markdown
[[某个文件夹|自定义文案]]
Expand Down

0 comments on commit b6fb83b

Please sign in to comment.