Can I render and display Markdown from Github into MEAN stack website dynamically?

150 views Asked by At

I'm developing a website using the MEAN stack framework and wanted to know if there is any way I can dynamically render a Markdown page that lives on a Github repository.

I don't want to redeploy the site every time a change is made to the Markdown file.

1

There are 1 answers

0
mb21 On

Use GitHub Pages: push to the gh-pages branch and GitHub will do the markdown to HTML conversion and serve you the HTML (not rate-limited) at http://yourusername.github.io/yourrepo. Just make an HTTP call to that address to fetch your content.

If you want to do the Markdown to HTML conversion yourself, fetch the Markdown via RawGit.