Skip to content

Embedded files doesn't resolve relative links #865

Closed
@aenniw

Description

@aenniw

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions