{"id":19423923,"url":"https://github.com/swizec/remark-code-screenshot","last_synced_at":"2025-04-24T16:31:13.659Z","repository":{"id":66695702,"uuid":"165006761","full_name":"Swizec/remark-code-screenshot","owner":"Swizec","description":"Remark plugin to turn code blocks into carbon.now.sh screenshots.","archived":false,"fork":false,"pushed_at":"2019-01-10T07:14:40.000Z","size":185,"stargazers_count":34,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T07:42:40.519Z","etag":null,"topics":["gatsby","markdown","remark","remark-plugin","remarkjs"],"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/Swizec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2019-01-10T06:51:26.000Z","updated_at":"2025-03-10T11:55:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"3217814c-4f03-4ffc-b5b0-4b02ea3161a9","html_url":"https://github.com/Swizec/remark-code-screenshot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swizec%2Fremark-code-screenshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swizec%2Fremark-code-screenshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swizec%2Fremark-code-screenshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swizec%2Fremark-code-screenshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Swizec","download_url":"https://codeload.github.com/Swizec/remark-code-screenshot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250663544,"owners_count":21467366,"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":["gatsby","markdown","remark","remark-plugin","remarkjs"],"created_at":"2024-11-10T13:41:19.428Z","updated_at":"2025-04-24T16:31:13.653Z","avatar_url":"https://github.com/Swizec.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# remark-code-screenshot\n\nRemark plugin to convert code blocks into carbon.now.sh screenshots.\n\n## Basic Usage\n\n````javascript\nimport remark from 'remark'\nimport codeScreenshot from 'remark-code-screenshot'\n\nconst markdownInput = [\"```\n    import remark from 'remark'\n    import codeScreenshot from 'remark-code-screenshot'\n\n    const markdownInput = \\\"\\\"\n\n    remark().use(codeScreenshot)\n    .process(markdownInput, function (err, output) {\n        console.log(output)\n    })\n```\"]\n\nremark()\n    .use(codeScreenshot)\n    .process(markdownInput, function (err, output) {\n        console.log(output)\n    });\n````\n\nOutputs something like this:\n\n![](https://github.com/Swizec/remark-code-screenshot/blob/master/screenshot-1547104367079.png?raw=true)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswizec%2Fremark-code-screenshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswizec%2Fremark-code-screenshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswizec%2Fremark-code-screenshot/lists"}