{"id":17052489,"url":"https://github.com/yaffle/mathml-to-clipboard","last_synced_at":"2025-04-30T22:22:06.161Z","repository":{"id":57292448,"uuid":"153974912","full_name":"Yaffle/mathml-to-clipboard","owner":"Yaffle","description":"A copy event handler to transform MathML into AsciiMath and put into the clipboard.","archived":false,"fork":false,"pushed_at":"2024-11-06T09:07:05.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-25T18:33:38.914Z","etag":null,"topics":["asciimath","clipboard","mathml"],"latest_commit_sha":null,"homepage":null,"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/Yaffle.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-10-21T04:57:50.000Z","updated_at":"2024-11-06T09:07:09.000Z","dependencies_parsed_at":"2024-11-29T23:17:04.122Z","dependency_job_id":null,"html_url":"https://github.com/Yaffle/mathml-to-clipboard","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yaffle%2Fmathml-to-clipboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yaffle%2Fmathml-to-clipboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yaffle%2Fmathml-to-clipboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yaffle%2Fmathml-to-clipboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yaffle","download_url":"https://codeload.github.com/Yaffle/mathml-to-clipboard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251790212,"owners_count":21644181,"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":["asciimath","clipboard","mathml"],"created_at":"2024-10-14T10:09:35.311Z","updated_at":"2025-04-30T22:22:06.134Z","avatar_url":"https://github.com/Yaffle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\nA JavaScript code to transform MathML into AsciiMath during \"copy\" and \"dragstart\" events.\nSee [example.html](https://yaffle.github.io/mathml-to-clipboard/example.html).\n\nThis allows the user to select a part of the rendered MathML on a page, then copy and paste the selection or use drag-and-drop.\nThe selection is serialized to a plain text string as AsciiMath.\n\nThe script only handles MathML tags, so MathJax may not always be supported. It works with MathML polyfills, such as https://github.com/fred-wang/mathml.css/ .\n\nUsage:\n\n```sh\nnpm install Yaffle/mathml-to-clipboard\nnpm run-script build\n```\nThen add the script to your html page:\n```html\n\u003cscript src=\"dist/main.js\"\u003e\u003c/script\u003e\n```\nIt will set the \"copy\" and \"dragstart\" event handlers on the document.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaffle%2Fmathml-to-clipboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaffle%2Fmathml-to-clipboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaffle%2Fmathml-to-clipboard/lists"}