NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Show HN: CLI tool to convert Markdown to rich HTML clipboard content (github.com)
roxolotl 3 hours 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/

letientai299 3 hours ago [-]
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.
naikrovek 2 hours ago [-]
> 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

letientai299 1 hours ago [-]
Please read the README. The tool turns Markdown into NSPasteboard on Mac, or CF_HTML on Windows, so that when you press Cmd/Ctrl-P onto supported applications (Teams, Word, Google Docs), you get something similar to how Github would display the Markdown in the browser.
dhruv3006 9 hours ago [-]
Interesting - I think this can go with Voiden.

We are a offline API client using Markdown.

Take a look here maybe : https://github.com/VoidenHQ/voiden/

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 16:35:03 GMT+0000 (Coordinated Universal Time) with Vercel.