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

Critical Error: includeMarkdown() fails if the file is empty #30

Closed
CinchBlue opened this issue Aug 4, 2015 · 1 comment
Closed

Critical Error: includeMarkdown() fails if the file is empty #30

CinchBlue opened this issue Aug 4, 2015 · 1 comment

Comments

@CinchBlue
Copy link

htmltools_error

I've been developing a module, and I've just noticed that the includeMarkdown() function will fail if the file is empty. Although this may seem fairly harmless, I have a project in which we develop modules that may include a help file, and the example help.md file is sometimes empty. If I add just a small amount of text to it, the function works again, and if I remove all text, the function fails.

It'd be nice just to include an empty pair of tags just to make sure that the function stays in tact in this very mundane fail case.

@yihui
Copy link
Member

yihui commented Aug 7, 2015

Thanks for the report! It has been fixed in the development version of the markdown package: https://github.com/rstudio/markdown

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

No branches or pull requests

2 participants