feat:引入markdown解析库

This commit is contained in:
2024-12-26 11:45:47 +08:00
parent 0edf421cf0
commit 96a42a1f0d

View File

@@ -1 +1,15 @@
<iframe src="./test.md"></iframe>
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Marked in the browser</title>
</head>
<body>
<div id="content"></div>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script>
document.getElementById('content').innerHTML =
marked.parse('# Marked in the browser\n\nRendered by **marked**.');
</script>
</body>
</html>