{"id":18090865,"url":"https://github.com/klml/copytextandurl","last_synced_at":"2025-04-06T02:36:06.466Z","repository":{"id":139145298,"uuid":"149642289","full_name":"klml/copytextandurl","owner":"klml","description":"Browser addon to copy selected text as linktext with current URL as link in markdown.","archived":false,"fork":false,"pushed_at":"2019-12-25T14:36:28.000Z","size":19,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T08:40:55.578Z","etag":null,"topics":["browser-extension"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/klml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-20T16:57:37.000Z","updated_at":"2022-06-23T08:27:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"c9af48c0-f2b8-4124-a551-5280ecc90876","html_url":"https://github.com/klml/copytextandurl","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klml%2Fcopytextandurl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klml%2Fcopytextandurl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klml%2Fcopytextandurl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klml%2Fcopytextandurl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klml","download_url":"https://codeload.github.com/klml/copytextandurl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427049,"owners_count":20937197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser-extension"],"created_at":"2024-10-31T18:08:11.749Z","updated_at":"2025-04-06T02:36:06.449Z","avatar_url":"https://github.com/klml.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Copy selected text as link in lightweight markup languages\n\n\n[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):\nConfigure your own flavoured language template.\n\n## Examples Templates\n\n|                                                                                       | Template                      | Result                                                |\n| ------------------------------------------------------------------------------------- |-------------------------------| ------------------------------------------------------|\n| [Markdown](https://daringfireball.net/projects/markdown/syntax#link)                  | `[$LINKTEXT]($URL)`           | `[established](http://www.example.org/)`              |\n| markdown                                                                              | `[$LINKTEXT]($URL \"$TITLE\")`  | `[established](http://example.org/ \"Example Domain\")` |\n| [MediaWiki](https://www.mediawiki.org/wiki/Help:Links#External_links)                 | `[$URL $LINKTEXT]`            | `[http://www.example.org/ established]`               |\n| [Textile](https://textile-lang.com/doc/links)                                         | `\"$LINKTEXT\":$URL`            | `\"established\":http://www.example.org/`               |\n| [JIRA](https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=links)   | `[$LINKTEXT\\|$URL]`           | `[established\\|http://www.example.org/]`              |\n| [Tiki](https://doc.tiki.org/Wiki-Syntax-Links)                                        | `[$URL\\|$LINKTEXT]`           | `[http://www.example.org/\\|established]`              |\n| [TeX](https://www.tug.org/applications/hyperref/manual.html#x1-20001)                 | `\\href{$URL}{$LINKTEXT}`      | `\\href{http://www.example.org/}{established}`         |\n| plain [HTML](https://www.w3schools.com/html/html_links.asp)                           | `\u003ca href=\"$URL\"\u003e$LINKTEXT\u003c/a\u003e`| `\u003ca href=\"http://www.example.org/\"\u003eestablished\u003c/a\u003e`   |\n| Plaintext                                                                             | `$LINKTEXT $URL`              | `established http://www.example.org/`                 |\n| \u003cPlaintext\u003e                                                                           | `$LINKTEXT \u003c$URL\u003e`            | `established \u003chttp://www.example.org/\u003e`               |\n| Your own                                                                              | `$LINKTEXT $URL send by me`   | `established http://www.example.org/  send by me`     |\n\n\nAvailable for firefox [addons.mozilla.org copytextandurl/](https://addons.mozilla.org/en-US/firefox/addon/copytextandurl/)\n\n\nCopied from [webextensions-examples context-menu-copy-link-with-types](https://github.com/mdn/webextensions-examples/tree/master/context-menu-copy-link-with-types)\n\n## Todo\n\n* [Shortcut](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/commands)\n* config for other lightweight markup languages\n* icon\n\n## Other and similar addons\n\nOther and similar addons, copying a selected text and the current URL as markdown link.\n\n[Copy Selection as Markdown](https://addons.mozilla.org/de/android/addon/copy-selection-as-markdown/)\n\n```\n[Example Domain](http://www.example.org/)\n\nestablished\n```\n\nAddons with another focus, _copying the current URL with its pagetitle_ or _copys links in a page as markdown links_.\n\n* [Copy as Markdown](https://addons.mozilla.org/de/android/addon/copy-as-markdown/)\n* [Copy Link/Tab Name and URL ](https://addons.mozilla.org/en-US/firefox/addon/copy-linktab-name-and-url/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklml%2Fcopytextandurl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklml%2Fcopytextandurl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklml%2Fcopytextandurl/lists"}