Skip to content

Feature request: Relative file import in include-files filter #102

Closed
@gabyx

Description

@gabyx

Would it make sense to add an attribute relative-to-current-dir=true or something such that, all paths or better all relative paths are resolved to the current file path we are currently at (maybe not so easy to distinguish platform independent, relative vs absolute paths).
Therefore maybe, just replace a variable "${current-dir}/b/c.md" in all paths, which would give a deterministic and consistent way of relative imports :)?

@tarleb: What do you think?

In a/b.md

``` { .include}
${current-dir}/b/c.md
```

or
In a/b.md

``` { .include relative-to-current-dir=true}
./b/c.md
```

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions