I made a little prototype of a literate programming tool inspired by Literate CoffeeScript. It converts markdown to JavaScript by turning markdown lines into comments, and JavaScript to markdown by removing comments around Markdown and putting fences around the JavaScript. It’s a little flawed right now.