MCPcopy Create free account
hub / github.com/dajie111/nodeseek-userscript / updatePreview

Function updatePreview

notes.js:1027–1031  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

showMarkdownDialogFunction · 0.85

Calls 1

convertMarkdownToHTMLFunction · 0.85

Tested by

no test coverage detected