{"id":16150462,"url":"https://github.com/nathom/mdwrap","last_synced_at":"2025-04-06T22:27:54.129Z","repository":{"id":107002173,"uuid":"608313335","full_name":"nathom/mdwrap","owner":"nathom","description":"A markdown formatter","archived":false,"fork":false,"pushed_at":"2024-06-24T09:19:54.000Z","size":42,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T04:44:01.597Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nathom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-03-01T19:01:43.000Z","updated_at":"2023-04-01T22:30:53.000Z","dependencies_parsed_at":"2024-04-17T03:52:04.483Z","dependency_job_id":"061a0335-d247-450e-b652-791d3d564447","html_url":"https://github.com/nathom/mdwrap","commit_stats":null,"previous_names":["nathom/mdwrap"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathom%2Fmdwrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathom%2Fmdwrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathom%2Fmdwrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathom%2Fmdwrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathom","download_url":"https://codeload.github.com/nathom/mdwrap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247562117,"owners_count":20958840,"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-10T00:49:31.124Z","updated_at":"2025-04-06T22:27:54.104Z","avatar_url":"https://github.com/nathom.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mdwrap\n\nA small Rust program that wraps markdown files. Uses the\n[comrak](https://docs.rs/comrak/) AST library so that rendering\nremains accurate.\n\n## Usage\n\nWrite wrapped input.md to output.md.\n\n``` bash\nmdwrap -f input.md -o output.md\n```\n\nWrite wrapped markdown from stdin to stdout\n\n``` bash\nmdwrap\n```\n\n### Use with (neo)vim\n\nAs a vim command\n\n``` vimscript\n%!mdwrap\n```\n\nWith [formatter.nvim](https://github.com/mhartington/formatter.nvim)\nand lazy.nvim (plugin manager).\n\n``` lua\nlocal function wrapper()\n\treturn {\n\t\texe = \"mdwrap\",\n\t\targs = { \"-l\", \"70\" }, -- or whatever line width you want\n\t\tstdin = true,\n\t}\nend\n\nreturn {\n\t\"mhartington/formatter.nvim\",\n\tconfig = function(plugin)\n\t\tlocal formatter_setup = {\n\t\t\tlogging = false,\n\t\t\tfiletype = {\n\t\t\t\tmarkdown = { wrapper },\n\t\t\t},\n\t\t}\n\t\trequire(\"formatter\").setup(formatter_setup)\n\tend,\n\tcmd = \"FormatWrite\",\n }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathom%2Fmdwrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathom%2Fmdwrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathom%2Fmdwrap/lists"}