Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Caixc97 committed Feb 2, 2024
1 parent f315b93 commit c96d3a1
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,39 @@
subtitle: Universal Science Multimodal Analysis and Research Transformer
---

<img src="assets/img/Uni-SMART-framework.png" alt="Descriptive Alt Text" style="width:100%;">
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Uni-SMART</title>
<!-- 引入marked库 -->
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
</head>
<body>
<img src="assets/img/Uni-SMART-framework.png" alt="Descriptive Alt Text" style="width:100%;">

<!-- Markdown内容的容器 -->
<div id="markdown-content"></div>

<!-- Markdown内容 -->
<script type="text/markdown" id="markdown">
# Page Title

Here is some content from `page.md`:

- List item 1
- List item 2

Replace this script content with your actual markdown content from `page.md`.
</script>

<!-- 使用JavaScript转换并显示Markdown -->
<script>
document.addEventListener('DOMContentLoaded', (event) => {
const markdownText = document.getElementById('markdown').innerText;
const htmlContent = marked.parse(markdownText);
document.getElementById('markdown-content').innerHTML = htmlContent;
});
</script>
</body>
</html>

0 comments on commit c96d3a1

Please sign in to comment.