Update index.html
Browse files- index.html +19 -18
index.html
CHANGED
@@ -1,19 +1,20 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
19 |
</html>
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="fr">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<title>Affichage Markdown</title>
|
6 |
+
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
7 |
+
</head>
|
8 |
+
<body>
|
9 |
+
<div id="markdown-content">Chargement du contenu Markdown...</div>
|
10 |
+
<textarea id="markdown-input" style="width: 100%; height: 100px;">Écrivez votre Markdown ici!</textarea>
|
11 |
+
<button onclick="updateContent()">Mettre à jour le contenu</button>
|
12 |
+
|
13 |
+
<script>
|
14 |
+
function updateContent() {
|
15 |
+
var markdownText = document.getElementById("markdown-input").value;
|
16 |
+
document.getElementById("markdown-content").innerHTML = marked(markdownText);
|
17 |
+
}
|
18 |
+
</script>
|
19 |
+
</body>
|
20 |
</html>
|