I am producing some formatted context that I would like to stick right into a google doc. Suppose hyperlinks & tables. I am going to use no matter format works, however I believe HTML is the one one Google Docs will help sufficient (Google Docs doesn’t help tables in markdown, as close to as I can inform).
What makes this a mac-specific query is the pasteboard information kind. I’ve found that if I set the pasteboard kind as HTML, then I can paste into the google doc and its interpreted. (If I simply common copy-paste uncooked html, it pastes the identical).
However, even setting that pasteboard information kind is a headache. pbcopy
doesn’t present a approach to set the info kind. pbpaste
has a -Choose
argument to allow you to select what information kind to paste, however (a) I am attempting to set the sort for the copy, not the paste and (b) even pbpaste
doesnt’ listing html as an possibility.
(I discovered a solution by way of a python lib which works for now, however I am asking anyway in case there higher choices, and to assist anyone else that may do this)