Build with Rust + Claude Code. Tested on Windows and Mac, should works on Ubuntu as well.
Caveats: it's still up to the pasted app to handle the HTML clipboard content.
Show HN: CLI tool to convert Markdown to rich HTML clipboard content
github.com
1–8 of 8 posts
Build with Rust + Claude Code. Tested on Windows and Mac, should works on Ubuntu as well.
Caveats: it's still up to the pasted app to handle the HTML clipboard content.
Show HN: CLI tool to convert Markdown to rich HTML clipboard content
github.com
We are a offline API client using Markdown.
Take a look here maybe : https://github.com/VoidenHQ/voiden/
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/
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/
I need the rendered content, not the plain text HTML. As mentioned in the README, I used pandoc in a previous version of the tool, but its output isn’t good looking for my use case.
what do you mean, here? you rasterize the markdown into an image?
[edit] yes he rasterizes the markdown into an image
Earlier quoted context omitted.
I need the rendered content, not the plain text HTML. As mentioned in the README, I used pandoc in a previous version of the tool, but its output isn’t good looking for my use case.
> I need the rendered content what do you mean, here? you rasterize the markdown into an image? [edit] yes he rasterizes the markdown into an image
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