Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --resource-path option to seperate images from markdown files #30

Merged
merged 2 commits into from
Jun 14, 2022
Merged

Add --resource-path option to seperate images from markdown files #30

merged 2 commits into from
Jun 14, 2022

Conversation

butteroverfl0w
Copy link
Contributor

Currently, the image-path has to be relative to the script location. Unfortunately, this results in some markdown editors (e.g. VSCode) not being able to preview the markdown files correctly (i.e. with images).

Pandoc has an --resource-path option, allowing to specify where to look for resources. This pull request adds --resource-path=.:src so that the script location and the src folder are searched for images. In addition, the placeholder image was moved to its own img directory, providing a better separation of contents and - in my opinion - a better bootstrap.

@noraj noraj merged commit 63242ac into noraj:master Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants