I have two markdown files: a parent.md
and a child.md
.
So parent.md
:
# Main section
## sub-section
I'd like to make reference to ## sub-section
from child.md
.
Any ideas?
You can now attach files, including images, to markdown files while you're editing them in the web. This works just like file attachments in issues and pull requests and supports the same file types.
Press CTRL + SHIFT + P. Select Markdown: Create Table of Contents.
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)
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)
What worked for me is in parent.md:
[link](./file.md#section-name) // note the dash!
In child.md:
## ...
## section name
I tested this on my local via JetBrains IDE.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With