Add Markdown HTML Preview Plug-In

I require a plugin that allows me to base the markdown preview on JavaScript - note that this plugin also allows users to create their own HTML templates and modify the layout.