Copy seletion as Markup or Markdown
Copy Markup Markdown Extension
# Copy Markup Markdown
This extension is made for cool people who like to take notes in markdown format. Having to copy content from the web then manually converting them to markdown format is a huge pain. Especially for formatting for code blocks and inline code.
Select text / code blocks from a page then you can access the copy menu from either the browser extension button or the context menu from right clicking. The menu items will be dependent on if there were any selection on the page.
Menu without Selection
* Markdown Link `[Title](URL)` - copy page title with URL in Markdown link format.
* Page as HTML - copy entire page html, sanitized, eliminated classes, ids, javascripts with HTML structure intact.
* Page as Markdown - copy entire page in markdown format.
Menu with selection
Menu items without Selection, plus:
* Selection as HTML - copy selection as html, sanitized, with HTML structure.
* Selection as Markdown - copy selection as markdown.
===== SAMPLE COPY SELECTION AS MARKDOWN ======
An example of a closure
-----------------------
The following code returns a reference to a function:
```
function sayHello2(name) {
var text = 'Hello ' + name; // Local variable
var say = function() { console.log(text); }
return say;
}
var say2 = sayHello2('Bob');
say2(); // logs \"Hello Bob\"
```
===== SAMPLE COPY SELECTION AS HTML ======
Read more
This extension is made for cool people who like to take notes in markdown format. Having to copy content from the web then manually converting them to markdown format is a huge pain. Especially for formatting for code blocks and inline code.
Select text / code blocks from a page then you can access the copy menu from either the browser extension button or the context menu from right clicking. The menu items will be dependent on if there were any selection on the page.
Menu without Selection
* Markdown Link `[Title](URL)` - copy page title with URL in Markdown link format.
* Page as HTML - copy entire page html, sanitized, eliminated classes, ids, javascripts with HTML structure intact.
* Page as Markdown - copy entire page in markdown format.
Menu with selection
Menu items without Selection, plus:
* Selection as HTML - copy selection as html, sanitized, with HTML structure.
* Selection as Markdown - copy selection as markdown.
===== SAMPLE COPY SELECTION AS MARKDOWN ======
An example of a closure
-----------------------
The following code returns a reference to a function:
```
function sayHello2(name) {
var text = 'Hello ' + name; // Local variable
var say = function() { console.log(text); }
return say;
}
var say2 = sayHello2('Bob');
say2(); // logs \"Hello Bob\"
```
===== SAMPLE COPY SELECTION AS HTML ======
An example of a closure
The following code returns a reference to a function:
function sayHello2(name) {
var text = 'Hello ' + name; // Local variable
var say = function() { console.log(text); }
return say;
}
var say2 = sayHello2('Bob');
say2(); // logs \"Hello Bob\"
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Copy Markup Markdown", "version": "0.10.0", "description": "Copy seletion as Markup or Markdown", "manifest_version": 2, "permissions": ["storage", "tabs", "", "contextMenus", "activeTab"], "background": { "scripts": ["background.js"] }, "content_scripts": [ { "matches": [""], "run_at": "document_start", "js": [ "sanitize-html.min.js", "pretty-single-file.js", "turndown.js", "turndown-plugin-gfm.js", "content.js" ] } ], "browser_action": { "default_title": "Copy what you want at ease", "default_popup": "popup.html", "default_icon": { "16": "papers_16.png", "32": "papers_32.png", "48": "papers_128.png", "128": "papers_128.png" } }, "icons": { "16": "papers_16.png", "32": "papers_32.png", "48": "papers_128.png", "128": "papers_128.png" }, "options_page": "options.html"}
Read more