Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
gormonn authored Aug 23, 2023
1 parent 7fa3e98 commit b8d26ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
<html>
<head>
<title>Dmitrii Chernikho</title>
<script defer="defer" src="https://cdn.jsdelivr.net/npm/showdown@<version tag>/dist/showdown.min.js"></script>
</head>
<body>
<div id="readme-content"></div>
<div id="readme-content">Loading... Please wait.</div>
<script>
const converter = new showdown.Converter();
fetch('https://raw.githubusercontent.com/gormonn/gormonn/main/README.md')
.then(response => response.text())
.then(text => {
// Вставьте содержимое README.md в элемент с id "readme-content"
document.getElementById('readme-content').innerHTML = text;
document.getElementById('readme-content').innerHTML = converter.makeHtml(text);
})
.catch(error => {
console.error('Failed to load README.md:', error);
Expand Down

0 comments on commit b8d26ee

Please sign in to comment.