Is there a (preferably light-weight way) to include the raw contents of a markdown file in HTML?
I'm using remark.js to create a slideshow and I'd like to keep the markdown file separate from the HTML, so that the HTML is very simple (and does not change):
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>Test</title>
    <link rel="stylesheet" href="style.css">
    <script src="https://gnab.github.io/remark/downloads/remark-latest.min.js"></script>
  </head>
  <body>
    <textarea id="source">
      >>'paste' markdown file test.md<<
    </textarea>
      <script>
        var slideshow = remark.create({
          highlightStyle: 'darkula',
          highlightLines: true
        });
      </script>
  </body>
</html>
Ideally this runs offline and on a local machine (without running a web server). The bit with 'paste' markdown file test.md' obviously does not work (hence my question). I've tried:
- object data="test.md"but that generates an ugly iframe
- This solution but I just got an empty page (I used a CDN for jQuery).
 
     
    