Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Copy Link, Image and Tab(s) as Markdown. (a Google Chrome Extension)
Branch: master
Pull request Compare This branch is 71 commits behind chitsaou:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.markdown
background.html
browser-action-popup.html
context-menu.js
copy-as-markdown.js
manifest.json
markdown.js
popup.css
service.js
toolbar-copy-as-markdown.png
view-controller.js

README.markdown

Copy as Markdown (Chrome Extension)

People love Markdown. But we often type Markdown code manually for a link or image, or even all tabs in a window. Y U NO let the browser do the dirty things?

That's why I made Copy as Markdown.

Features

Copy as Markdown is a Chrome extension which can help you copy the following things as Markdown to your system clipboard:

Current Tab as Link

Through the Right-Top "md" button, or a Right-Clicking on the empty area of the page.

Supports both [page title](url) and [page title][id] following its [id]: url.

A Link on the Page

Through Right-Clickubg on a link.

Supports both [text](url) and [text][id] following its [id]: url

Pro-Tip: If the link has an Image in it, the copied Markdown will take that image as link text.

An Image on the Page

Through Right-Clickubg on an image.

The copied Markdown code will be ![](url).

Note: It is known issue that I don't understand how to get the img.alt.

All Tabs as a List of Links (!)

Through the Right-Top "md" button.

The copied Markdown code will be:

* [title of tab1](url of tab1)
* [title of tab2](url of tab2)
* [title of tab3](url of tab3)
* ...

Note: Planning to provide a reference-style option.

Known Issues

  • Cannot grab image.alt
  • (more issues in the issue tracker)

Contributing

Coding ninja? You can help this project by:

  • adding features,
  • fixing bugs,
  • UI improvement (CSS), or
  • converting it to CoffeeScript

Note: I want the product be lightweight; please avoid using any 3rd-party library such as jQuery or CSS framework.

The MIT License

Copyright (c) 2012 Yu-Cheng Chuang

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Something went wrong with that request. Please try again.