diff options
Diffstat (limited to 'themes/researcher/layouts/partials/projectFetcher.html')
-rw-r--r-- | themes/researcher/layouts/partials/projectFetcher.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/themes/researcher/layouts/partials/projectFetcher.html b/themes/researcher/layouts/partials/projectFetcher.html new file mode 100644 index 0000000..40f2fea --- /dev/null +++ b/themes/researcher/layouts/partials/projectFetcher.html @@ -0,0 +1,17 @@ +<div id="fetched-markdown"></div> + +<script src="https://cdn.jsdelivr.net/npm/showdown@1.9.0/dist/showdown.min.js" type="text/javascript"></script> + +<script> + +fetch("https://raw.githubusercontent.com/Baitinq/OSXIV/master/README.md").then((response) => response.text()).then((data) => { + console.log(data); + const converter = new showdown.Converter(); + const html = converter.makeHtml(data); + document.getElementById('fetched-markdown').innerHTML = html; +}); +</script> + +----- + +This information was fetched from [OSXIV's](https://github.com/Baitinq/OSXIV) [README]("https://raw.githubusercontent.com/Baitinq/OSXIV/master/README.md"). |