Copy your Sublime Text 2 Markdown as a fancy rich-text string.
- Total 801
- Win 326
- OS X 362
- Linux 113
|Jan 22||Jan 21||Jan 20||Jan 19||Jan 18||Jan 17||Jan 16||Jan 15||Jan 14||Jan 13||Jan 12||Jan 11||Jan 10||Jan 9||Jan 8||Jan 7||Jan 6||Jan 5||Jan 4||Jan 3||Jan 2||Jan 1||Dec 31||Dec 30||Dec 29||Dec 28||Dec 27||Dec 26||Dec 25||Dec 24||Dec 23||Dec 22||Dec 21||Dec 20||Dec 19||Dec 18||Dec 17||Dec 16||Dec 15||Dec 14||Dec 13||Dec 12||Dec 11||Dec 10||Dec 9|
Markboard for Sublime Text 2
Markboard is a quick-and-dirty plugin for Sublime Text 2 that processes a Markdown document and copies the output to the clipboard as rich text. Its target audience is that Venn slice of people whom both WYSIWYG editors and completely raw text cause to twitch, who enjoy the expressive force of an emphasized word but also the austerity of a monospaced buffer, who would sooner part with their typing fingers than their typesetting systems but compromise their staunchness each and every time they want to italicize a book title in an e-mail. To these people, Markboard is proudly dedicated. Go forth and WYG no more.
The package essentially bridges and combines a few readymade Python libraries and scripts without adding much more than a Sublime interface, so please take a look at the “Thanks and Credits” section below.
Ctrl+Alt+c in any Markdown document, switch to a rich-text editor, and paste. You can also select specific parts of your Markdown source for processing; if there are multiple selections, they'll be strung together with two newlines between them and copied as a unit.
Markboard.sublime-settings file includes the option to run your Markdown through Pandoc rather than Trent Mick's
markdown2 library. A little testing revealed that Pandoc's Markdown processor is considerably smoother, but not necessarily such a dramatic improvement as to justify dropping
markdown2 and rendering the package unusable to those without a Pandoc installation; so it's left to the user. (Though of course, installing Pandoc also means being able to take full advantage of Markboard's sister plugin, Pandown.)
Markboard has only been tested on Mac OS X—Windows and Linux users are encouraged to give it a try and report their results! The Windows code is recent, and seems reliable; the Linux code was written, without a Linux distro and in the dark, by your intrepid author, who is a humanities weenie by trade and unaccustomed to software design. Your mileage and so on.
Thanks and Credits
Markboard isn't too much more than an amalgamation of several other predesigned scripts:
- Trent Mick's markdown2 Python library, to parse the Markdown source and return HTML; in the project folder, with MIT license and documentation, as
- Phillip Piper's Windows clipboard library, to place the HTML on the Windows clipboard; distributed without a license and in the project folder as
- “Clark”'s guide to manipulating the OS X clipboard provided the basis for the way this script does it.
My heartfelt gratitude goes out to the authors of these components. If they should come across this project and think that their work was being misused, I'd encourage them to contact me through GitHub or at firstname.lastname@example.org.