Markdown to clipboard as rich text

六眼飞鱼酱① 提交于 2021-01-27 13:30:58

问题


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:

  1. From HTML to rich text, and then
  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!