{"id":13526931,"url":"https://github.com/zuchka/remove-markdown","last_synced_at":"2025-04-01T08:30:37.310Z","repository":{"id":27345474,"uuid":"30820484","full_name":"zuchka/remove-markdown","owner":"zuchka","description":"Strip Markdown stuff from text","archived":false,"fork":false,"pushed_at":"2025-02-19T15:10:58.000Z","size":132,"stargazers_count":325,"open_issues_count":3,"forks_count":63,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-17T20:20:05.182Z","etag":null,"topics":["javascript","markdown","nodejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/remove-markdown","language":"JavaScript","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/zuchka.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":"2015-02-15T06:59:23.000Z","updated_at":"2025-03-12T17:11:36.000Z","dependencies_parsed_at":"2024-06-18T12:36:56.491Z","dependency_job_id":null,"html_url":"https://github.com/zuchka/remove-markdown","commit_stats":{"total_commits":72,"total_committers":24,"mean_commits":3.0,"dds":0.5,"last_synced_commit":"9a3927954584779852e8d556e4071e883536f559"},"previous_names":["stiang/remove-markdown"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuchka%2Fremove-markdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuchka%2Fremove-markdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuchka%2Fremove-markdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuchka%2Fremove-markdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zuchka","download_url":"https://codeload.github.com/zuchka/remove-markdown/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246607090,"owners_count":20804514,"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":["javascript","markdown","nodejs"],"created_at":"2024-08-01T06:01:37.820Z","updated_at":"2025-04-01T08:30:37.300Z","avatar_url":"https://github.com/zuchka.png","language":"JavaScript","readme":"## What is it?\n**remove-markdown** is a node.js module that will remove (strip) Markdown formatting from text.\n*Markdown formatting* means pretty much anything that doesn’t look like regular text, like square brackets, asterisks etc.\n\n## When do I need it?\nThe typical use case is to display an excerpt from some Markdown text, without any of the actual Markdown syntax - for example in a list of posts.\n\n## Installation\n\n```\nnpm install remove-markdown\n```\n\n## Usage\n```js\nconst removeMd = require('remove-markdown');\nconst markdown = '# This is a heading\\n\\nThis is a paragraph with [a link](http://www.disney.com/) in it.';\nconst plainText = removeMd(markdown); // plainText is now 'This is a heading\\n\\nThis is a paragraph with a link in it.'\n```\n\nYou can also supply an options object to the function. Currently, the following options are supported:\n\n```js\nconst plainText = removeMd(markdown, {\n  stripListLeaders: true , // strip list leaders (default: true)\n  listUnicodeChar: '',     // char to insert instead of stripped list leaders (default: '')\n  gfm: true                // support GitHub-Flavored Markdown (default: true)\n  useImgAltText: true      // replace images with alt-text, if present (default: true)\n});\n```\n\nSetting `stripListLeaders` to false will retain any list characters (`*, -, +, (digit).`).\n\n## TODO\nPRs are very much welcome. Here are some ideas for future enhancements:\n\n* Allow the RegEx expressions to be customized per rule\n* Make the rules more robust, support more edge cases\n* Add more (comprehensive) tests\n\n## Credits\nThe code is based on [Markdown Service Tools - Strip Markdown](http://brettterpstra.com/2013/10/18/a-markdown-service-to-strip-markdown/) by Brett Terpstra.\n\n## Authors\nStian Grytøyr (original creator)\n[zuchka](https://github.com/zuchka) (maintainer since 2023)\n","funding_links":[],"categories":["Repository","JavaScript"],"sub_categories":["Parsing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuchka%2Fremove-markdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzuchka%2Fremove-markdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuchka%2Fremove-markdown/lists"}