Paste Markdown
Paste Chrome web selections into Sublime Text as Markdown on macOS
Details
Installs
- Total 54
- Win 0
- Mac 54
- Linux 0
| Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Mac | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Paste Markdown for Sublime Text
Paste a web selection copied from Chrome as Markdown instead of plain text.
Usage
- Select content on a page in Chrome and copy it with
Cmd+C. - Switch to Sublime Text.
- Open the Command Palette and run
Paste Markdown: Paste HTML as Markdown.
The command converts common HTML elements including headings, paragraphs, emphasis, links, images, lists, blockquotes, code blocks, and tables. If the clipboard does not contain HTML, it pastes plain text by default.
Keyboard shortcut
Package Control packages should not claim shortcuts by default. To use
Cmd+Ctrl+V, open Preferences > Package Settings > Paste Markdown >
Key Bindings. Copy the example binding into your user keymap.
[
{
"keys": ["super+ctrl+v"],
"command": "paste_markdown"
}
]
Installation
Install Paste Markdown with Package Control.
For development, open Sublime Text's Preferences > Browse Packages..., then
place or symlink this directory there as Paste Markdown:
ln -s /Users/wuvist/code/subl_paste_md \
"$HOME/Library/Application Support/Sublime Text/Packages/Paste Markdown"
Sublime Text reloads the plugin automatically.
Settings
Open Preferences > Package Settings > Paste Markdown after installing, or
override these keys in Packages/User/Paste Markdown.sublime-settings:
{
"fallback_to_plain_text": true,
"show_status_message": true
}
Development
The converter uses only Python's standard library. Run its tests with:
python3 -m unittest -v
The rich clipboard integration currently targets macOS.