Suppose I have a README.md
file in a github repository. I am then making a website all about this repository that I will host using gh-pages
.
What I want is to have a section of my index.html
file that gets its content from my README.md
file. This way, only one file needs to be updated.
I imagine that the markdown file will first need to be converted to html, and that html can then be put into another html file.
I have looked into HTML5 Imports, but they are only currently supported in Chrome. Using a separate .js
file with document.write()
could be useful, but is there a simple, clean way?