Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Feature]在本文引用其他目录的文章 #1

Closed
Jayin opened this issue Jan 30, 2015 · 0 comments
Closed

[New Feature]在本文引用其他目录的文章 #1

Jayin opened this issue Jan 30, 2015 · 0 comments

Comments

@Jayin
Copy link
Owner

Jayin commented Jan 30, 2015

需求

我正在浏览~?notes/linux/install-Java.md linux下安装java,但是我文中提到如果你想安装XX请看之前的YY文章这时候,我们就会弄个链接上去,但是问题来了,目前版本的silentor只能实现链接到统一目录下的文件

也就是只能链接到~?notes/linux/*.md

如果想链接到~?notes/python/1.md or ~?tech/php/*.md呢?

效果

  1. 当前目录: [1.md] or [./1.md] (后者不推荐这样写,但是可以这样写)
  2. 上一目录: [../ruby/1.md] (不推荐这样写,但是你也可以这样写)
  3. 再上一目录? 别开玩笑../../ruby/1.md这样太难看了,拒绝这样写!
  4. 推荐添加一个跟目录常量__ROOT__,表示这是文章目录p/的位置,那么你像引用那一块就那一块。eg:[linux下配置java](__ROOT__/notes/linux/install-java.md)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant