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

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

Open
kasbah opened this issue Mar 29, 2020 · 0 comments
Open

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

kasbah opened this issue Mar 29, 2020 · 0 comments

Comments

@kasbah
Copy link

kasbah commented Mar 29, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant