Skip to content

Commit

Permalink
dude i would love if this worked
Browse files Browse the repository at this point in the history
  • Loading branch information
jamopopper committed Jul 4, 2024
1 parent d110180 commit f87344d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
</noscript>

<!-- Load the markdown file -->
<script style="#content { white-space: pre-wrap; }">
<script>
fetch('README.md')
.then(response => response.text())
.then(text => document.getElementById('main_page').innerHTML = text)
.then(text => document.getElementById('main_page').innerHTML += text)
.catch(error => console.error('Error:', error));
</script>

<!-- Load the script and interpret markdown-->
<!-- <script src="md-page.js"></script> -->
<script src="md-page.js"></script>

0 comments on commit f87344d

Please sign in to comment.