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).
Will this return TRUE even when in the R or C++ part of a markdown file? Is that okay?