问题
Using Python on Windows, I am trying to take a Markdown file and stick it into my clipboard as rich text. Most of the pieces of the puzzle are easy enough.
- Parsing the Markdown to HTML: No probs.
- Putting stuff into the clipboard via TKinter: Yup.
But it's that middle part I just can't seem to crack. The steps I am missing are:
- From HTML to rich text, and then
- Rich text into clipboard.
Is this even possible, or is it too big a leap?
来源:https://stackoverflow.com/questions/20103194/markdown-to-clipboard-as-rich-text