Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

[QUESTION] How do I set a subdirectory? #446

@kasbah

Description

@kasbah

Judging by #435 something is done on NPM to allow setting the subdirectory of the markdown file, so that relative image URLs resolve properly. How can I make use of this when using marky-markdown as a library?

I tried doing:

html = marky(markdown, {
  package: {repository: {url: 'https://..', directory: 'subdirectory/'}}
})

But that has no effect.

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