Paste Markdown
Paste Chrome web selections into Sublime Text as Markdown on macOS
Details
Installs
- Total 17
- Win 0
- Mac 17
- Linux 0
| Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | Jul 21 | Jul 20 | Jul 19 | Jul 18 | Jul 17 | Jul 16 | Jul 15 | Jul 14 | Jul 13 | Jul 12 | Jul 11 | Jul 10 | Jul 9 | Jul 8 | Jul 7 | Jul 6 | Jul 5 | Jul 4 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 |
| Mac | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 |
| 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 |
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.