Preview markdown using Showdown parser and also view the converted HTML
Credits to : https://www.npmjs.com/package/showdown
Install Showdown library from npm.
npm install showdown
Learn more about Showdown here.
Convert Markkdown to HTML
import showdown from 'showdown'; const markdown = `[Apps4Developers.com](https://www.apps4developers.com/) # Apps4Developers > Apps for Developers has tools to help developers and designers work`; const converter = new showdown.Converter(); const html = converter.makeHtml(action.payload); console.log(html);