Docfile commited on
Commit
d992149
·
verified ·
1 Parent(s): 342ab8f

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +19 -18
index.html CHANGED
@@ -1,19 +1,20 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
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>