{"id":17581904,"url":"https://github.com/fliiiix/pandoc-d2-filter","last_synced_at":"2025-03-29T17:21:44.761Z","repository":{"id":258370041,"uuid":"868496191","full_name":"fliiiix/pandoc-d2-filter","owner":"fliiiix","description":"Pandoc filter to covert d2 code blocks to images.","archived":false,"fork":false,"pushed_at":"2024-10-16T19:12:58.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T18:20:26.879Z","etag":null,"topics":["d2","hacktoberfest","pandoc-filter"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pandoc-d2-filter/","language":"Python","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/fliiiix.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":"2024-10-06T14:33:19.000Z","updated_at":"2024-10-17T23:31:54.000Z","dependencies_parsed_at":"2024-10-20T09:49:53.002Z","dependency_job_id":null,"html_url":"https://github.com/fliiiix/pandoc-d2-filter","commit_stats":null,"previous_names":["fliiiix/pandoc-d2-filter"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fliiiix%2Fpandoc-d2-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fliiiix%2Fpandoc-d2-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fliiiix%2Fpandoc-d2-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fliiiix%2Fpandoc-d2-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fliiiix","download_url":"https://codeload.github.com/fliiiix/pandoc-d2-filter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246216530,"owners_count":20742000,"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":["d2","hacktoberfest","pandoc-filter"],"created_at":"2024-10-22T01:44:40.676Z","updated_at":"2025-03-29T17:21:44.740Z","avatar_url":"https://github.com/fliiiix.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"pandoc-d2-filter\n================\n\nPandoc filter to convert d2 code blocks to images.\n\n````\n```{.d2 pad=20}\nx -\u003e y\n```\n````\n\n## Usage\n\nInstall it with pip:\n\n```\npip install pandoc-d2-filter\n```\n\nAnd use it like any other pandoc filter:\n\n```\npandoc tests/testdata/default.md -o default.pdf --filter pandoc-d2\n```\n\nThe d2 binary is either part of the `$PATH`\nor can be configured via `D2_BIN` environment variable.\nIf you use other output formats than svg,\nyou should `d2 init-playwright` before the first use.\n\n## Configuration\n\nTODO check `tests/testdata` for now.\n\n## Inspiration\n\nThis filter is heavily inspired by the\n[JavaScript d2-filter](https://github.com/ram02z/d2-filter)\nand the [pandoc-plantuml-filter](https://github.com/timofurrer/pandoc-plantuml-filter).\n\nThanks [Omar](https://github.com/ram02z) \u0026 [Timo](https://github.com/timofurrer)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffliiiix%2Fpandoc-d2-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffliiiix%2Fpandoc-d2-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffliiiix%2Fpandoc-d2-filter/lists"}