超链接标题的内部链接

Jas*_*ann 2 hyperlink org-mode heading

在文档中,我想创建一个内部链接。这在常规链接上按预期工作。但当标题本身是一个超链接时,这就不起作用了。应该如何实现这一目标呢?

Trying to link to [[Heading1]] and [[???]]

* Heading1 

These are some contents.

* [[http://example.com][Heading2]]

These are some more contents. 

Run Code Online (Sandbox Code Playgroud)

Nic*_*ckD 5

转到第二个标题并C-c l存储链接(假设您已按照手册中的建议设置了键绑定:如果没有,只需说M-x org-store-link RET)。

然后转到您要插入链接的位置并执行C-c C-l(或M-x org-insert-link RET)操作。

现在尝试您的新链接:它对我来说效果很好。

作为记录,工作结果如下所示:

Trying to link to [[Heading1]] and [[*\[\[http://example.com\]\[Heading2\]\]][Heading2]]

* Heading1 

These are some contents.

* [[http://example.com][Heading2]]

These are some more contents. 
Run Code Online (Sandbox Code Playgroud)