pass rmarkdown context on to new doc dialog