()
| 1025 | |
| 1026 | // 实时预览功能 |
| 1027 | function updatePreview() { |
| 1028 | const markdown = markdownTextarea.value; |
| 1029 | const html = convertMarkdownToHTML(markdown); |
| 1030 | previewArea.innerHTML = html; |
| 1031 | } |
| 1032 | |
| 1033 | markdownTextarea.addEventListener('input', updatePreview); |
| 1034 |
no test coverage detected