{"id":15942159,"url":"https://github.com/discretetom/mdcg","last_synced_at":"2025-03-30T04:22:16.601Z","repository":{"id":65526251,"uuid":"519780714","full_name":"DiscreteTom/mdcg","owner":"DiscreteTom","description":"Markdown content generator.","archived":false,"fork":false,"pushed_at":"2023-01-07T04:07:32.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-05T06:38:58.281Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/DiscreteTom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-31T13:14:51.000Z","updated_at":"2022-07-31T13:15:06.000Z","dependencies_parsed_at":"2023-02-06T11:15:30.011Z","dependency_job_id":null,"html_url":"https://github.com/DiscreteTom/mdcg","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/DiscreteTom%2Fmdcg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiscreteTom%2Fmdcg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiscreteTom%2Fmdcg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiscreteTom%2Fmdcg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DiscreteTom","download_url":"https://codeload.github.com/DiscreteTom/mdcg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246274681,"owners_count":20751115,"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-07T07:40:28.315Z","updated_at":"2025-03-30T04:22:16.581Z","avatar_url":"https://github.com/DiscreteTom.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MDCG\n\n[![npm](https://img.shields.io/npm/v/mdcg?color=green\u0026style=flat-square)](https://www.npmjs.com/package/mdcg)\n\nMarkdown Content Generator.\n\nUseful when you want to reference other file contents in your markdown content.\n\n## Installation\n\n```\nyarn add mdcg\n```\n\n## Usage\n\nUse a special tag to specify the content. The default tag is `include`.\n\n```xml\n\u003cinclude path=\"./package.json\" from=\"5\" to=\"-1\" type=\"code\" lang=\"json\" /\u003e\n```\n\nThen run `mdcg input.md output.md`.\n\nAvailable attributes:\n\n- `from`: from which line, can be negative, default: `1`, means the first line.\n- `to`: to which line, can be negative, default: `undefined`, means eof.\n- `type`: the content type, default: `code`.\n- `lang`: when type is `code`, `lang` means the language of the code block, default: the file's extension.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiscretetom%2Fmdcg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiscretetom%2Fmdcg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiscretetom%2Fmdcg/lists"}