rmarkdown::render(markdownFile, quiet = TRUE, output_file=mdFileName, md_document(variant = "markdown_github"))
above function from the rmarkdown package works fine.
it takes rmd file and md file as input, converts rmd file content to md content and writes to md file.
Is there any function in rmarkdown package that takes rmd text as input and returns md text as output.
Thanks