Markdown:引用另一个文件中的部分 [英] Markdown: Reference to section from another file
本文介绍了Markdown:引用另一个文件中的部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个markdown文件: parent.md
和 child.md
.
I have two markdown files: a parent.md
and a child.md
.
所以 parent.md
:
# Main section
## sub-section
我想引用 child.md
中的 ##小节
.
有什么想法吗?
推荐答案
在 MarkDown
中,可以使用超链接进行引用:
In MarkDown
, reference is possible using hyperlink :
# Main section
## [sub-section](./child.md#sub-section)
## [sub-section](/child.md#sub-section)
## [sub-section](child.md#sub-section)
不幸的是,无法直接嵌入另一个Markdown文件
Unfortunately the direct embedding of another Markdown file is not possible
一种替代方法是使用捕获其他文件中的切口:
An alternative is the use of an incision from a capture of the other file:
# Main section
## sub-section
![ImageTheOtherMarkdown](Screent.png)
这篇关于Markdown:引用另一个文件中的部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文