Skip to content

Commit

Permalink
html5 baby
Browse files Browse the repository at this point in the history
  • Loading branch information
ijara committed Oct 24, 2024
1 parent 8ce2048 commit 1bdf485
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
<title>Text</title>
<p>Lorem ipsum</p>


{% include /../daily/latest.md %}
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Markdown to HTML</title>
</head>
<body>
<div id="content"></div>

<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script>
fetch('../daily/latest.md')
.then(response => response.text())
.then(markdownContent => {
const contentElement = document.getElementById('content');
contentElement.innerHTML = marked.parse(markdownContent);
});
</script>
</body>
</html>

0 comments on commit 1bdf485

Please sign in to comment.