{"id":16974382,"url":"https://github.com/jerone/turndown-plugin-github-code-snippet","last_synced_at":"2025-10-08T14:02:10.299Z","repository":{"id":136845826,"uuid":"168869894","full_name":"jerone/turndown-plugin-github-code-snippet","owner":"jerone","description":"A Turndown plugin to convert GitHub code snippet in comments back into normal links.","archived":false,"fork":false,"pushed_at":"2024-03-11T23:49:48.000Z","size":563,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T20:33:29.110Z","etag":null,"topics":["turndown","turndown-plugin"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/turndown-plugin-github-code-snippet","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jerone.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}},"created_at":"2019-02-02T19:36:10.000Z","updated_at":"2025-02-07T05:12:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"fce52025-5d6a-4481-9ded-defdd56f5046","html_url":"https://github.com/jerone/turndown-plugin-github-code-snippet","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/jerone%2Fturndown-plugin-github-code-snippet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerone%2Fturndown-plugin-github-code-snippet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerone%2Fturndown-plugin-github-code-snippet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerone%2Fturndown-plugin-github-code-snippet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jerone","download_url":"https://codeload.github.com/jerone/turndown-plugin-github-code-snippet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166857,"owners_count":21058481,"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":["turndown","turndown-plugin"],"created_at":"2024-10-14T01:06:16.936Z","updated_at":"2025-10-08T14:02:10.198Z","avatar_url":"https://github.com/jerone.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [turndown-plugin-github-code-snippet](https://github.com/jerone/turndown-plugin-github-code-snippet/)\n\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=jerone_turndown-plugin-github-code-snippet\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=jerone_turndown-plugin-github-code-snippet)\n\n\u003e A [Turndown](https://github.com/mixmark-io/turndown) plugin to convert [GitHub code snippet in comments](https://help.github.com/articles/creating-a-permanent-link-to-a-code-snippet/) back into normal links. Useful for UserScripts.\n\n## Requirements\n\n- [Turndown](https://github.com/mixmark-io/turndown) - version 4 or higher.\n\n## Installation\n\nAs a NPM package:\n\n```sh\nnpm install turndown-plugin-github-code-snippet\n```\n\nIn an UserScript:\n\n```js\n// @require  https://unpkg.com/turndown/dist/turndown.js\n// @require  https://unpkg.com/turndown-plugin-github-code-snippet/src/turndown-plugin-github-code-snippet.js\n```\n\n## Usage\n\n```js\nvar turndownService = new TurndownService();\nturndownService.use(turndownPluginGitHubCodeSnippet);\nvar markdown = turndownService.turndown(document.querySelector(\".comment\"));\nconsole.log(markdown);\n```\n\n## License\n\nturndown-plugin-github-code-snippet is copyright \u0026#169; 2019+ Jeroen van Warmerdam and released under the [GNU General Public License v3.0 license](https://github.com/jerone/turndown-plugin-github-code-snippet/blob/master/LICENSE).\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://stand-with-ukraine.pp.ua)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerone%2Fturndown-plugin-github-code-snippet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjerone%2Fturndown-plugin-github-code-snippet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerone%2Fturndown-plugin-github-code-snippet/lists"}