provide file completions in '[...](|)' for markdown documents

This provides completions for links in R Markdown documents. Links are generated relative to the directory of the R Markdown file (and no completions are generated if the file has not yet been saved).
Ah, you're right. What I want here is `isPlainMarkdown()`.