DEV Community

Discussion on: Build Markdown editor using Svelte in 10 minutes

Collapse
 
ronvoluted profile image
Ron Au

Very quick and straightforward tut! One easy change to make:

let markdown = marked(source);
Enter fullscreen mode Exit fullscreen mode

should be changed to a reactive declaration:

$: markdown = marked(source);
Enter fullscreen mode Exit fullscreen mode

This way, the changes you make on the left get turned into markup on the right dynamically :)