about summary refs log tree commit diff
path: root/themes/researcher/layouts/partials/projectFetcher.html
blob: 40f2fea7e566ec9ce91d7febad2c40e43c356e29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<div id="fetched-markdown"></div>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/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").