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

Output warning if detected blocking local resources while rendering by Chrome #98

Merged
merged 8 commits into from
May 25, 2019

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented May 23, 2019

Now Marp CLI outputs warning if failed the request of file scheme. (powered by Puppeteer's requestfailed event)

User can see this warning when using local files in Markdown conversion to PDF and images. It would help user to notice requiring uploaded assets, or lacked --allow-local-files option to render local files.

It requires the update of href attr of base tag: Add file: scheme, to fallback a relative path in data: scheme HTML to file: scheme and catch request errors by Puppeteer correctly.

Fixes #84.

@yhatt yhatt merged commit 33e49c4 into master May 25, 2019
@yhatt yhatt deleted the warn-local-file-access branch May 25, 2019 00:20
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.

Output warning if detected blocking local resources while rendering by Chrome
1 participant