{"id":13511199,"url":"https://github.com/steindani/pandoc-include","last_synced_at":"2025-10-21T13:59:22.035Z","repository":{"id":55927333,"uuid":"47219563","full_name":"steindani/pandoc-include","owner":"steindani","description":"An include filter for Pandoc","archived":false,"fork":false,"pushed_at":"2020-12-06T18:51:42.000Z","size":10,"stargazers_count":62,"open_issues_count":14,"forks_count":20,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-21T13:59:09.109Z","etag":null,"topics":["document-processing","markdown","pandoc","pandoc-filter"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/steindani.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-01T21:50:08.000Z","updated_at":"2024-12-10T04:17:50.000Z","dependencies_parsed_at":"2022-08-15T09:40:20.870Z","dependency_job_id":null,"html_url":"https://github.com/steindani/pandoc-include","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/steindani/pandoc-include","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steindani%2Fpandoc-include","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steindani%2Fpandoc-include/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steindani%2Fpandoc-include/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steindani%2Fpandoc-include/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steindani","download_url":"https://codeload.github.com/steindani/pandoc-include/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steindani%2Fpandoc-include/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280272339,"owners_count":26302260,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["document-processing","markdown","pandoc","pandoc-filter"],"created_at":"2024-08-01T03:00:37.820Z","updated_at":"2025-10-21T13:59:21.986Z","avatar_url":"https://github.com/steindani.png","language":"Haskell","readme":"# pandoc-include\nA Pandoc filter that replaces include labeled Code Blocks with the contents of\nthe referenced files. Even nested, recursive includes.\n\nBased on the scripting tutorial for Pandoc:\nhttp://pandoc.org/scripting.html#include-files\n\n## Format\nThe Code Blocks like the following will include every file in a new line. The\nreference paths should be either absolute or relative to the folder where the\npandoc command will be executed.\n\n```markdown\n﻿```include\n﻿/absolute/file/path.md\n﻿relative/to/the/command/root.md\n﻿#do/not/include/this.md\n﻿```\n```\n\nIf the file does not exist, it will be skipped completely. No warnings, no\nresidue, nothing. Putting an `#` as the first character in the line will make the\nfilter skip that file.\n\nFor now the nested includes only work for two levels, after that the source\nwill be inserted and not parsed.\n\n*Note: the metadata from the included source files are discarded.*\n\n## Installation\nOne could either install it using the Cabal packaging system by running:\n\n```\ncabal update\ncabal install pandoc-include\n```\n\nOr it is also possible to use the pipe method using the source code described in the *Usage* section.\n\n## Usage\nIn order to use this Pandoc filter, one has to include it into the Pandoc transformation workflow. This can be done by using the `--filter` parameter, like so:\n\n```\npandoc --from markdown --to latex --filter pandoc-include input.md\n```\n\nAll this does in the background is pipelining the output of Pandoc and the last filter into the standard input of the include filter and using its output as the next filter's input:\n\n```\npandoc --from markdown --to json input.md | runhaskell IncludeFilter.hs | pandoc --from json --to latex\n```\n\n## License\nCopyright ©2015 [Dániel Stein](https://twitter.com/steindani)\n\nSource code is released under the Terms and Conditions of [MIT License](http://opensource.org/licenses/MIT).\n","funding_links":[],"categories":["Pandoc Filters"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteindani%2Fpandoc-include","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteindani%2Fpandoc-include","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteindani%2Fpandoc-include/lists"}