Author: Angelo Stavrow
E-mail: contact@angelostavrow.com
Creation Date: 25 June, 2012
Last Modified: 21 July, 2012
Version: 1.0
Licence: MIT/X11 (Link)
This Firefox add-on creates a context-menu entry that copies selected text and formats it per Octopress's blockquote syntax:
{% blockquote [author] [link] [source_link_title] %}
Quote string
{% endblockquote %}
It then places this data on the system clipboard for easy copying into your favourite markdown editor.
The user selects the text to be quoted and right-clicks to bring up Firefox's context menu. Upon choosing Create Blockquote, the selected text, page link, and page title are auto-filled in Octopress blockquote syntax.
The user can then paste the pre-formatted blockquote into their preferred text editor.
Note: The author data is not parsed; the user should replace the Source placeholder as appropriate. If the author name is made blank, then no source link/title is shown in the blockquote.
Please note that this add-on is third-party software and is not supported by, affiliated with, or even known to exist by the good folks that created and maintain Octopress. I wrote it to make my life easier, and wanted to share it with you.
Revved to version 1.0; compatibility with FireFox v14.0 tested.
lib/main.js: Changed the Author placeholder in the attribution string to Source for better experience; this can now remain unchanged if the site doesn't specify the author.
lib/main.js: Updated the newline character at the end of the generated blockquote syntax from \n to \r\n for better compatibility in Windows.
Initial release.