Convert Markdown to HTML

You’ll need a shell script to convert Markdown to HTML (I imagine they are easy to find on the net).

Then you use execute script with an Execute Shell Script action, and have it just read directly from the clipboard using the pbpaste tool:

pbpaste | ~/Wherever/MyMarkDownConverter

The results of the Execute Shell Script ate then put into the Clipboard or Variable or whatever.