Is there (preferably an easy way) to include the original contents of the markdown file in HTML?
I use remark.js to create a slide show, and I would like to leave the markup file separate from the HTML, so the HTML is very simple (and doesn't change):
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Test</title>
<link rel="stylesheet" href="style.css">
<script src="https://gnab.imtqy.com/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 is done autonomously and on the local computer (without starting the web server). The “paste” markdown file test.md bit obviously doesn't work (hence my question). I tried:
object data="test.md"but generates an ugly iframe- This is a solution , but I just got a blank page (I used CDN for jQuery).
source
share