{"id":29299734,"url":"https://github.com/mermade/mdv","last_synced_at":"2025-09-10T22:41:31.793Z","repository":{"id":18579677,"uuid":"84643322","full_name":"Mermade/mdv","owner":"Mermade","description":"Markdown (link/image) validator","archived":false,"fork":false,"pushed_at":"2023-11-02T16:38:12.000Z","size":310,"stargazers_count":6,"open_issues_count":10,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-13T14:58:46.994Z","etag":null,"topics":["a11y","accessibility","href","link","markdown","validation","validator"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mermade.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":"2017-03-11T10:55:03.000Z","updated_at":"2023-03-01T18:11:33.000Z","dependencies_parsed_at":"2023-02-10T05:15:15.323Z","dependency_job_id":"d25c362b-db6e-43d5-b38c-afebcb793042","html_url":"https://github.com/Mermade/mdv","commit_stats":{"total_commits":120,"total_committers":7,"mean_commits":"17.142857142857142","dds":0.3583333333333333,"last_synced_commit":"1cb28f7a8b4ef682f76b18e5aeea4d17c92996b6"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/Mermade/mdv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mermade%2Fmdv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mermade%2Fmdv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mermade%2Fmdv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mermade%2Fmdv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mermade","download_url":"https://codeload.github.com/Mermade/mdv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mermade%2Fmdv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263962471,"owners_count":23536450,"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":["a11y","accessibility","href","link","markdown","validation","validator"],"created_at":"2025-07-06T19:40:58.047Z","updated_at":"2025-07-06T19:41:02.271Z","avatar_url":"https://github.com/Mermade.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mdv\n\n[![Build status](https://travis-ci.org/Mermade/mdv.svg?branch=master)](https://travis-ci.org/Mermade/mdv)\n\nA tiny markdown validator. It understands [GFM auto-links](https://gist.github.com/asabaylus/3071099), and returns an exitCode of 1 if any rules are violated, making it suitable for use in CI environments. It is in use by the [OpenAPI Specification](https://github.com/OAI/OpenAPI-Specification), the [RAML Specification](https://github.com/raml-org/raml-spec) and the [AsyncAPI Specification](https://github.com/asyncapi/asyncapi), amongst others.\n\n## Errors\n\n* Undefined internal link targets - `missingAnchors[]`\n* Duplicated internal link targets - `duplicatedAnchors[]`\n* Anchors containing the # character - `anchorsWithHash[]`\n* Links with empty text - `anchorsWithEmptyText[]`\n* Local Refs without # character - `localRefNoHash[]`\n* Images without an `alt` tag - `imagesWithMissingAlt[]`\n* `yaml`, `json`, `xml` or `abnf` examples which do not parse - `nonParsingExamples[]`\n\n## Warnings\n\n* Internal manually-defined anchors with no links pointing to them\n* Code-blocks with no language specified - `codeBlocksWithNoLanguage`\n* Four or more leading backticks at the beginning of a line\n\n## Usage\n\n```\nOptions:\n  -d, --debug  enable debug mode                                       [boolean]\n  -s, --save   save intermediary html                                  [boolean]\n  -w, --warnings  enable warnings                                      [boolean]\n  -h, --help   Show help                                               [boolean]\n```\n\n### API\n\n```javascript\nconst mdv = require('mdv');\nconst options = {};\nconst result = mdv.validate(markdownString,options);\n```\n\n### Example output\n\n```javascript\n{ imagesWithMissingAlt: 0,\n  source: '../openapi-specification/versions/2.0.md',\n  missingAnchors:\n   [ { name: 'dataTypeType', defined: 0, seen: 1 },\n     { name: 'stType', defined: 0, seen: 2 },\n     { name: 'securityDefinitions', defined: 0, seen: 1 } ],\n  duplicatedAnchors:\n   [ { name: 'itemsMaximum', defined: 2, seen: 0, auto: false },\n     { name: 'headerMaximum', defined: 2, seen: 0, auto: false } ],\n  anchorsWithHash: [],\n  anchorsWithEmptyText: [],\n  codeBlocksWithNoLanguage: 1 }\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmermade%2Fmdv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmermade%2Fmdv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmermade%2Fmdv/lists"}