MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / changePreview

Function changePreview

assets/js/MarkDownPreviewer.js:4–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2const previewContent=document.getElementById('preview')
3// changePreview()
4function changePreview()
5{
6 let editorText=editorContent.value;
7 let previewText=marked(editorText);
8 console.log(editorText)
9 previewContent.innerHTML=previewText
10
11}
12editorContent.addEventListener('input', changePreview)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected