Preview markdown using Showdown parser and also view the converted HTML

Credits to :

Installing 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
> Apps for Developers has tools to help developers and designers work`;

const converter = new showdown.Converter();
const html = converter.makeHtml(action.payload);

© 2022 Apps4Developers. All rights reserved.