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