Copy your Markdown content as rich-formatted text directly to your macOS clipboard with a single command.
markdown2richtext.rb
is a simple Ruby script that takes your Markdown files and copies them as rich-formatted text (RTF) onto your macOS clipboard. It's perfect for quickly pasting your Markdown content into applications that support RTF like email clients, word processors, or other documentation tools.
I created this to transform markdown from ChatGPT into rich text.
- Ruby
- The
redcarpet
gem
- Clone this repository:
git clone https://github.com/schappim/markdown2richtext.git
cd markdown2richtext
- Install the required gem:
gem install redcarpet
Run the script with:
ruby markdown2richtext.rb path_to_your_markdown_file.md
Once executed, your converted Markdown content will be on your clipboard, ready to be pasted as rich-formatted text!
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.