Skip to content

Internal links between Markdown files #1973

Answered by minttoothpick
jaredkrinke asked this question in Q&A
Discussion options

You must be logged in to vote

You might have some luck with markdown-it-replace-link. Depends on how deep or varied your folder structure is. But using your example of two posts in the same folder, I think you could check for links ending in .md, and return them prepended with ../ and the file extension removed.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by jaredkrinke
Comment options

You must be logged in to vote
1 reply
@JacksonBailey
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants