https://github.com/klml/copytextandurl
Browser addon to copy selected text as linktext with current URL as link in markdown.
https://github.com/klml/copytextandurl
browser-extension
Last synced: about 2 months ago
JSON representation
Browser addon to copy selected text as linktext with current URL as link in markdown.
- Host: GitHub
- URL: https://github.com/klml/copytextandurl
- Owner: klml
- License: mit
- Created: 2018-09-20T16:57:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-25T14:36:28.000Z (over 5 years ago)
- Last Synced: 2025-02-12T08:40:55.578Z (4 months ago)
- Topics: browser-extension
- Language: JavaScript
- Homepage:
- Size: 18.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Copy selected text as link in lightweight markup languages
[Browser addon](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons) to copy selected text as linktext with current URL as link in [lightweight markup languages](https://en.wikipedia.org/wiki/Lightweight_markup_language):
Configure your own flavoured language template.## Examples Templates
| | Template | Result |
| ------------------------------------------------------------------------------------- |-------------------------------| ------------------------------------------------------|
| [Markdown](https://daringfireball.net/projects/markdown/syntax#link) | `[$LINKTEXT]($URL)` | `[established](http://www.example.org/)` |
| markdown | `[$LINKTEXT]($URL "$TITLE")` | `[established](http://example.org/ "Example Domain")` |
| [MediaWiki](https://www.mediawiki.org/wiki/Help:Links#External_links) | `[$URL $LINKTEXT]` | `[http://www.example.org/ established]` |
| [Textile](https://textile-lang.com/doc/links) | `"$LINKTEXT":$URL` | `"established":http://www.example.org/` |
| [JIRA](https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=links) | `[$LINKTEXT\|$URL]` | `[established\|http://www.example.org/]` |
| [Tiki](https://doc.tiki.org/Wiki-Syntax-Links) | `[$URL\|$LINKTEXT]` | `[http://www.example.org/\|established]` |
| [TeX](https://www.tug.org/applications/hyperref/manual.html#x1-20001) | `\href{$URL}{$LINKTEXT}` | `\href{http://www.example.org/}{established}` |
| plain [HTML](https://www.w3schools.com/html/html_links.asp) | `$LINKTEXT`| `established` |
| Plaintext | `$LINKTEXT $URL` | `established http://www.example.org/` |
| | `$LINKTEXT <$URL>` | `established ` |
| Your own | `$LINKTEXT $URL send by me` | `established http://www.example.org/ send by me` |Available for firefox [addons.mozilla.org copytextandurl/](https://addons.mozilla.org/en-US/firefox/addon/copytextandurl/)
Copied from [webextensions-examples context-menu-copy-link-with-types](https://github.com/mdn/webextensions-examples/tree/master/context-menu-copy-link-with-types)
## Todo
* [Shortcut](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/commands)
* config for other lightweight markup languages
* icon## Other and similar addons
Other and similar addons, copying a selected text and the current URL as markdown link.
[Copy Selection as Markdown](https://addons.mozilla.org/de/android/addon/copy-selection-as-markdown/)
```
[Example Domain](http://www.example.org/)established
```Addons with another focus, _copying the current URL with its pagetitle_ or _copys links in a page as markdown links_.
* [Copy as Markdown](https://addons.mozilla.org/de/android/addon/copy-as-markdown/)
* [Copy Link/Tab Name and URL ](https://addons.mozilla.org/en-US/firefox/addon/copy-linktab-name-and-url/)