Skip to content

The cover image was not properly handled when using a relative path #146

@TCLiuu

Description

@TCLiuu

When the image path referenced in the example is a relative path, it cannot be processed correctly. For example,

![](../figures/cover.png)

Will produce an error, and the result will be like

┌ Warning: cover file doesn't exists
│   cover_path = "<CARD_PATH>/../figures/cover.png"
└ @ DemoCards ~/.julia/packages/DemoCards/ZgH8l/src/generate.jl:358

I think the problem arises from

src_path = joinpath(dirname(card.path), card.cover)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions