reMarked.js is a client-side HTML to Markdown converter. Markdown is a great way to format texts for the internet. Without much experience an easy to read text is written — without the bloat of HTML tags.
However, this comes — like so many things — with a cost: performance will suffer and CPU is wasted since normally Markdown would have to convert your texts to HTML for every page impression. Only some way of caching could prevent this.
That is exactly the point where reMarked.js comes into play: Write texts in Markdown and save them in HTML. You won’t need a copy of the original Markdown input, since Markdownify can convert the saved HTML back to Markdown. And because page impressions are far more often than write actions, this gives you a simple way to increase your page’s performance.
Another benefit for a CMS or similar software is that now only one format of text is saved — HTML. The user can now choose whether to write texts in plain HTML or use a full fledged WYSIWYG editor. Of course he can write in Markdown.
The ultimate goal is integration with existing WYSIWYG html editors (eg: TinyMCE, CKeditor, Loki, CLeditor) to produce Markdown output. There are currently no WYSIWYG editors for markdown, only WYSIWYM, which still require knowledge of markdown syntax and its many quirky flavors.
License: MIT License
Article published by Hirvesh (This blog article was re-posted via RSS and all Rights Are Reserved to the original owners).