Closed jojo05 closed 6 years ago
A really simple preact component only using preact, linkstate and snarkdown could look like this. If you want be able to use preact components from your markdown you may want to take a look at preact-markup.
thanks, exactly what I was looking for
How would you convert the simple editor example into a preact component ?
let $ = document.querySelector.bind(document); let html = snarkdown($('#in').value); $('#out').innerHTML = html; $('#code').textContent = html;