KeenWrite[1] is my FOSS Markdown editor, which is based heavily on CommonMark. The editor can call R functions (with a knitr-compatible syntax[2]). The tutorials[3] demo embedding CSV file contents. This creates a "living" document in that changing the contents of the CSV data (the source of truth) changes the output document.