{"id":15640543,"url":"https://github.com/timofurrer/pandoc-mermaid-filter","last_synced_at":"2025-05-07T07:20:08.653Z","repository":{"id":41463480,"uuid":"127765733","full_name":"timofurrer/pandoc-mermaid-filter","owner":"timofurrer","description":"Pandoc filter for mermaid code blocks","archived":false,"fork":false,"pushed_at":"2024-01-18T15:26:37.000Z","size":7,"stargazers_count":80,"open_issues_count":12,"forks_count":22,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-07T07:20:00.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/timofurrer.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-04-02T14:15:20.000Z","updated_at":"2025-05-01T13:48:16.000Z","dependencies_parsed_at":"2024-10-22T22:16:18.948Z","dependency_job_id":null,"html_url":"https://github.com/timofurrer/pandoc-mermaid-filter","commit_stats":{"total_commits":4,"total_committers":3,"mean_commits":"1.3333333333333333","dds":0.5,"last_synced_commit":"f0e3646166d9de5541d6a38927a308bfb09d6b1c"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timofurrer%2Fpandoc-mermaid-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timofurrer%2Fpandoc-mermaid-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timofurrer%2Fpandoc-mermaid-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timofurrer%2Fpandoc-mermaid-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timofurrer","download_url":"https://codeload.github.com/timofurrer/pandoc-mermaid-filter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252831413,"owners_count":21810801,"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":[],"created_at":"2024-10-03T11:37:13.847Z","updated_at":"2025-05-07T07:20:08.599Z","avatar_url":"https://github.com/timofurrer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pandoc-mermaid-filter\n\nPandoc filter which converts mermaid code blocks to mermaid images.\n\n````\n```mermaid\ngantt\n        dateFormat  YYYY-MM-DD\n        title Adding GANTT diagram functionality to mermaid\n        section A section\n        Completed task            :done,    des1, 2014-01-06,2014-01-08\n        Active task               :active,  des2, 2014-01-09, 3d\n        Future task               :         des3, after des2, 5d\n        Future task2               :         des4, after des3, 5d\n        section Critical tasks\n        Completed task in the critical line :crit, done, 2014-01-06,24h\n        Implement parser and jison          :crit, done, after des1, 2d\n        Create tests for parser             :crit, active, 3d\n        Future task in critical line        :crit, 5d\n        Create tests for renderer           :2d\n        Add to mermaid                      :1d\n```\n````\n\n## Usage\n\nInstall it with pip:\n\n```\npip install pandoc-mermaid-filter\n```\n\nAnd use it like any other pandoc filter:\n\n```\npandoc tests/sample.md -o sample.pdf --filter pandoc-mermaid\n```\n\nThe mermaid binary must be in your `$PATH` or can be set with the\n`MERMAID_BIN` environment variable.\n\nBy setting the environment variable `PUPPETEER_CFG`, you can pass a custom\nconfiguration file to `mermaid` (`-p` option).\n\n## But there is ...\n\nThere are a few other filters trying to convert mermaid code blocks however\nthey all failed for me.\n\n### Troubleshoot\n\nI've had to install the mermaid CLI locally instead of globally. See https://github.com/mermaidjs/mermaid.cli/issues/16\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimofurrer%2Fpandoc-mermaid-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimofurrer%2Fpandoc-mermaid-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimofurrer%2Fpandoc-mermaid-filter/lists"}