question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Embedded files doesn't resolve relative links

See original GitHub issue

Bug Report

Docsify doesn’t resolve relative links in embedded markdown files correctly. Whenever MD file contains any relative link instead of file content user just gets Not found 404 error.

Steps to reproduce

README.md

[Task](./task/README.md ':include')

task/README.md

# Crossword:

On the last page you found a weird crossword puzzle. Perhaps it reveals a flag for you.

[crosswords.png](./crosswords.png ':ignore')

task/crosswords.png

What is current behaviour

Link to crosswords.png points to /crosswords.png

What is the expected behaviour

Link to crosswords.png should point to /task/crosswords.png

Other relevant information

  • Bug does still occur when all/other plugins are disabled?

  • Your OS: Ubuntu 16.04

  • Node.js version: v10.15.3

  • npm/yarn version: 6.4.1

  • Browser version: 74.0.3729.169

  • Docsify version: 4.9.4

  • Docsify plugins: N/A

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dellagustin-sapcommented, Apr 24, 2020

That’s the plan 😉

1reaction
anikethsahacommented, Apr 24, 2020

create a separate issue if it still exists with sandbox example.

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Relative links and embedding - Microsoft Community
I created a document with a number of dynamically linked images. Although they are supposed to be relative, in the “Edit Links to...
Read more >
HTML embed uses wrong relative path - Stack Overflow
1 Answer 1 ... The point goes to Quentin. I tried the minimum example again and it works. The relative paths are resolved...
Read more >
Relative file links not saving in pdf? - nisus.com
Save a PDF of the nisus file. The links work in the PDF. Rename the enclosing folder. The links work in Nisus... but...
Read more >
[Solved] Word Fields and Relative Paths to External Files
The above solution works with DATABASE, INCLUDEPICTURE, INCLUDETEXT, RD and HYPERLINK fields, but not with LINK fields - for which, see below. It...
Read more >
Embedded links are not working - RSJoomla!
The most common reason for which this is happening, is that the links are converted from absolute paths, into relative paths, by the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found