{"id":19096184,"url":"https://github.com/cobular/md-include","last_synced_at":"2026-06-12T23:33:58.739Z","repository":{"id":199356183,"uuid":"702709645","full_name":"Cobular/md-include","owner":"Cobular","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-09T21:32:30.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-31T23:15:03.755Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/Cobular.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-09T21:10:45.000Z","updated_at":"2023-10-09T21:30:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc244c3d-ce82-4495-b7ab-9122b6c50f6f","html_url":"https://github.com/Cobular/md-include","commit_stats":null,"previous_names":["cobular/md-include","cobular/loader"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Cobular/md-include","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cobular%2Fmd-include","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cobular%2Fmd-include/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cobular%2Fmd-include/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cobular%2Fmd-include/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cobular","download_url":"https://codeload.github.com/Cobular/md-include/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cobular%2Fmd-include/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34266915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":[],"created_at":"2024-11-09T03:36:02.253Z","updated_at":"2026-06-12T23:33:58.716Z","avatar_url":"https://github.com/Cobular.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MD Include\n\nA simple tool to insert other files into markdown (or any) files.\n\nSimply place the string `{{ embed_file(path=\"\u003cFILE_NAME\u003e\") }}` into your file, then call `md-include` on it:\n\n```bash\n$ ls\nfile.md\n\n$ cat file.md\nsome stuff\nmore stuff\n\n{{ embed_file(path=\"\u003cFILE_NAME\u003e\") }}\n\nlast_stuff\n\n$ md-include file.md\nsome stuff\nmore stuff\n\nCONTENTS FROM THAT FILE\n\nlast_stuff\n```\n\n## Installing\n\n`cargo install md-include`\n\n## Usage\n\n```bash \nA tool to include any file in markdown files\n\nUsage: md-include [OPTIONS] \u003cROOT_DIR\u003e [CUSTOM_PANDOC_FLAGS]...\n\nArguments:\n  \u003cROOT_DIR\u003e                The root directory to recursively search for markdown files\n  [CUSTOM_PANDOC_FLAGS]...  Custom flags to pass to pandoc\n\nOptions:\n  -o, --output-pdf  Output to PDF instead of stdout\n  -h, --help        Print help\n  -V, --version     Print version\n```\n\nIf you pass a glob instead of a single file, this tool will parse and embed all `embed_file`s, then concat them all seperated by `\\n\\n * * * \\n\\n` (a Markdown \u003chr\u003e)\n\nThe sort order is based on depth of paths, with ties broken by alphabetical order.\n\nYou can also use `-o` and this will call pandoc to convert markdown to pdf.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcobular%2Fmd-include","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcobular%2Fmd-include","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcobular%2Fmd-include/lists"}