|
|
|
|
|
by roxolotl
140 days ago
|
|
I’d highly recommend pandoc[0] if you need markdown conversion. Basically converts from everything and any markdown style to everything else. And then for clipboard just use `| pbcopy` on a Mac or `| xsel -ib`. Full command on a Mac would just be `pandoc README.md -t html | pbcopy`. If you want a docx you can get that too. 0: https://pandoc.org/ |
|
`cat something.md | pandoc -f gfm -t html | xclip -selection clipboard -t text/html`
other output type targets also available, check xclip docs
my small experience with Wayland suggested this sort of thing might be more difficult there, but dunno