- pug
- xsel
- clip
- node
You can install on debian based distros by running sudo apt-get install xsel xclip; sudo npm i pug -g
Select and copy the Pug code, run the script below
xsel -b > temp.pug; pug temp.pug --pretty; cat temp.html | xclip -sel clip; rm temp.html temp.pug;
Then paste, it will be in HTML.