Skip to content

Relative paths in sub-directory - shouldn't they get converted to absolute on build? #653

Closed

Description

@ivanz

Given the following directory and file structure:

│   index.md
│
└───Section
    │   section.md
    │
    ├───files
    │       test.zip
    │
    └───images
            image.jpg

I expect that in section.md when I use:

![Image alt text](images/image.jpg)

It will generate: /Section/images/image.jpg

However instead it generates: ../../images/image.jpg

I would expect to see ../../images/image.jpg generated only if I were doing ![ (/images/image.jpg)

Activity

  1. changed the title [-]Relative paths in sub-directory do not get processed correctly[/-] [+]Relative paths in sub-directory - shouldn't they get converted to absolute on build?[/+] on Jun 25, 2015
  2. added this to the 0.15.0 milestone on Jun 25, 2015
  3. d0ugal commented on Jun 25, 2015

    @d0ugal
    Contributor

    Yeah, that is annoying. I've been meaning to look into this.

  4. waylan commented on Jun 25, 2015

    @waylan
    Contributor

    I suspect this is a duplicate of #192.

    Also see my comment for an explanation of why all internal paths must be relative.

  5. ivanz commented on Jun 25, 2015

    @ivanz
    Author

    Well my issue is that I want me and my team to be able to use an editor such as MarkdownPad for editing documentation and for this we want to use relative paths in markdown, so that we get to get preview of the images/diagrams in the editor (otherwise it wouldn't know what the root "/" is if absolute paths are used)

    The changes in pull request #654 fix this for me but break one test. :(

  6. d0ugal commented on Jan 15, 2016

    @d0ugal
    Contributor

    Closing in favour of #192.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions