typora中内联链接、引用链接和脚注用法详解

一个ai生成的包含多种工具的工具箱图片

链接(Links)

markdown 支持两种链接:内联链接和引用链接

链接的虽然有不同的形式,它的目的就是链接某一个部分,包括某一网页,某一段落等(Markdown supports two styles of links: inline and reference.In both styles, the link text is delimited by [square brackets].)!

内联连接(链接外部)

要创建内联链接,请在链接文本的结束方括号后立即使用一组常规括号。在括号内,将您希望链接指向的网址放在引号中,并附上链接的可选标题。例如(To create an inline link, use a set of regular parentheses immediately after the link text’s closing square bracket. Inside the parentheses, put the URL where you want the link to point, along with an optional title for the link, surrounded in quotes. For example:)


This is [an example](http://example.com/ "Title") inline link.
[This link](http://example.net/) has no title attribute.

结果:

This is an example inline link. (<p>This is <a href="http://example.com/" title="Title">)

This link has no title attribute. (<p><a href="http://example.net/">This link</a> has no)

内联链接(链接内部)

链接到某一标题章节,在使用过程中,点击ctrl+click 就会调转到对应的章节

[text](#title)

这将跳转到对应的标题。

引用链接 Reference Links

引用样式链接使用第二组方括号,在方括号内,您可以放置一个标签来选择要识别的链接:

Reference-style links use a second set of square brackets, inside which you place a label of your choosing to identify the link:

写法
This is [an example][id] reference-style link.

Then, anywhere in the document, you define your link label on a line by itself like this:

[id]: http://example.com/ "Optional Title Here"

在 Typora 中,它们将被渲染成这样:点击后,就会跳转到对应的网站:example.com

结果

This is an example reference-style link.

隐式链接名称快捷方式允许您省略链接的名称,在这种情况下,链接文本本身将用作名称。 只需使用一组空方括号 - 例如,要将单词“Google”链接到 google.com 网站,您可以简单地编写:

文章内[Google][]
[Google]: http://google.com

Google

在 Typora 中,单击链接将展开它以进行编辑,而ctrl+click将在网络浏览器中打开超链接。

总结

链接分为两类;内部链接、引用链接

内部连接,在连接地址时,如果连接是本文的标题,变成了书签,也可以链接外部地址

引用连接;类似学术中文献内容的引用连接,定义的是链接

脚注的用法

脚注,顾名思义就是用于的注解说明,用于对文章的某一部分进行注解

一个具有注脚的文本。1


创建脚注格式类似这样 [^RUNOOB]
[^RUNOOB]: 菜鸟教程 -- 学的不仅是技术,更是梦想!!!

脚注可以是:文本来源的解释、词的解释、网页连接等内容。

通常也可以定义这段文章的来源的用法,类似学术论文中参考文献。

发表评论

0 评论