Write a script that shows content typed into the textarea#content
field in the #preview-content
element.
Bonus: Convert the content from markdown to HTML using an open source plugin like MarkedJS.
- How do you handle line breaks?
- How can you structure the script to support additional fields without having to change the code?
This project is part of the Writing Plugins pocket guide and video course.