{"_id":"remove-markdown","_rev":"3518576","name":"remove-markdown","description":"Remove Markdown formatting from text","dist-tags":{"latest":"0.5.2"},"maintainers":[{"name":"stiang","email":"stian@grytoyr.net"},{"name":"zuchka","email":""}],"time":{"modified":"2024-08-27T20:52:33.000Z","created":"2015-02-15T08:47:33.024Z","0.5.2":"2024-08-02T00:01:00.633Z","0.5.0":"2022-04-27T06:54:21.365Z","0.3.0":"2018-05-27T09:12:01.702Z","0.2.2":"2017-08-12T16:51:13.480Z","0.2.1":"2017-08-02T12:26:02.048Z","0.2.0":"2017-06-21T10:42:59.423Z","0.1.0":"2016-01-18T22:41:14.227Z","0.0.6":"2015-07-15T08:05:58.302Z","0.0.5":"2015-05-20T18:13:30.800Z","0.0.4":"2015-05-20T08:19:50.443Z","0.0.2":"2015-02-15T10:50:05.701Z","0.0.1":"2015-02-15T08:47:33.024Z"},"users":{"rocket0191":true},"author":{"name":"Stian Grytøyr"},"repository":{"type":"git","url":"git+https://github.com/zuchka/remove-markdown.git"},"versions":{"0.5.2":{"name":"remove-markdown","version":"0.5.2","description":"Remove Markdown formatting from text","main":"index.js","scripts":{"test":"mocha -R spec test/remove-markdown.js"},"repository":{"type":"git","url":"git+https://github.com/zuchka/remove-markdown.git"},"keywords":["markdown"],"author":{"name":"Stian Grytøyr"},"license":"MIT","bugs":{"url":"https://github.com/zuchka/remove-markdown/issues"},"homepage":"https://github.com/zuchka/remove-markdown","devDependencies":{"chai":"^4.0.2","mocha":"^10.2.0","should":"^5.0.0"},"_id":"remove-markdown@0.5.2","gitHead":"1b9277d2350c58b42012cfa2401cd43e9caede5c","_nodeVersion":"22.4.1","_npmVersion":"10.8.1","dist":{"shasum":"1e52602260cc1e65e6f0c4f9e9662141ef3bd302","size":5140,"noattachment":false,"key":"/remove-markdown/-/remove-markdown-0.5.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/remove-markdown/download/remove-markdown-0.5.2.tgz"},"_npmUser":{"name":"zuchka","email":"zuchka@pm.me"},"directories":{},"maintainers":[{"name":"stiang","email":"stian@grytoyr.net"},{"name":"zuchka","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remove-markdown_0.5.2_1722556860478_0.9773940709536122"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-02T00:01:00.633Z","publish_time":1722556860633,"_source_registry_name":"default","_cnpm_publish_time":1722556860633},"0.5.0":{"name":"remove-markdown","version":"0.5.0","description":"Remove Markdown formatting from text","main":"index.js","scripts":{"test":"mocha -R spec test/remove-markdown.js"},"repository":{"type":"git","url":"git+https://github.com/stiang/remove-markdown.git"},"keywords":["markdown"],"author":{"name":"Stian Grytøyr"},"license":"MIT","bugs":{"url":"https://github.com/stiang/remove-markdown/issues"},"homepage":"https://github.com/stiang/remove-markdown","devDependencies":{"chai":"^4.0.2","mocha":"^2.1.0","should":"^5.0.0"},"gitHead":"d8b8f58a9d4e859a914707bc75cae55cdf5c47d1","_id":"remove-markdown@0.5.0","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"shasum":"a596264bbd60b9ceab2e2ae86e5789eee91aee32","size":6606,"noattachment":false,"key":"/remove-markdown/-/remove-markdown-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/remove-markdown/download/remove-markdown-0.5.0.tgz"},"_npmUser":{"name":"stiang","email":"stian@grytoyr.net"},"directories":{},"maintainers":[{"name":"stiang","email":"stian@grytoyr.net"},{"name":"zuchka","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remove-markdown_0.5.0_1651042461195_0.5676214850722772"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-27T06:54:31.325Z","publish_time":1651042461365,"_cnpm_publish_time":1651042461365},"0.3.0":{"name":"remove-markdown","version":"0.3.0","description":"Remove Markdown formatting from text","main":"index.js","scripts":{"test":"mocha -R spec test/remove-markdown.js"},"repository":{"type":"git","url":"git+https://github.com/stiang/remove-markdown.git"},"keywords":["markdown"],"author":{"name":"Stian Grytøyr"},"license":"MIT","bugs":{"url":"https://github.com/stiang/remove-markdown/issues"},"homepage":"https://github.com/stiang/remove-markdown","devDependencies":{"chai":"^4.0.2","mocha":"^2.1.0","should":"^5.0.0"},"gitHead":"863862e89b78556b11597ad1bbf4eef176142c0c","_id":"remove-markdown@0.3.0","_shasum":"5e4b667493a93579728f3d52ecc1db9ca505dc98","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.4","_npmUser":{"name":"stiang","email":"stian@grytoyr.net"},"dist":{"shasum":"5e4b667493a93579728f3d52ecc1db9ca505dc98","size":5805,"noattachment":false,"key":"/remove-markdown/-/remove-markdown-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/remove-markdown/download/remove-markdown-0.3.0.tgz"},"maintainers":[{"name":"stiang","email":"stian@grytoyr.net"},{"name":"zuchka","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remove-markdown_0.3.0_1527412321622_0.4989741481270147"},"_hasShrinkwrap":false,"publish_time":1527412321702,"_cnpm_publish_time":1527412321702},"0.2.2":{"name":"remove-markdown","version":"0.2.2","description":"Remove Markdown formatting from text","main":"index.js","scripts":{"test":"mocha -R spec test/remove-markdown.js"},"repository":{"type":"git","url":"git+https://github.com/stiang/remove-markdown.git"},"keywords":["markdown"],"author":{"name":"Stian Grytøyr"},"license":"MIT","bugs":{"url":"https://github.com/stiang/remove-markdown/issues"},"homepage":"https://github.com/stiang/remove-markdown","devDependencies":{"chai":"^4.0.2","mocha":"^2.1.0","should":"^5.0.0"},"gitHead":"cbc3177f8fb592cd26d1f6163b347d2172b50e77","_id":"remove-markdown@0.2.2","_shasum":"66b0ceeba9fb77ca9636bb1b0307ce21a32a12a6","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"stiang","email":"stian@grytoyr.net"},"dist":{"shasum":"66b0ceeba9fb77ca9636bb1b0307ce21a32a12a6","size":3844,"noattachment":false,"key":"/remove-markdown/-/remove-markdown-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/remove-markdown/download/remove-markdown-0.2.2.tgz"},"maintainers":[{"name":"stiang","email":"stian@grytoyr.net"},{"name":"zuchka","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remove-markdown-0.2.2.tgz_1502556672598_0.4119389581028372"},"directories":{},"publish_time":1502556673480,"_hasShrinkwrap":false,"_cnpm_publish_time":1502556673480},"0.2.1":{"name":"remove-markdown","version":"0.2.1","description":"Remove Markdown formatting from text","main":"index.js","scripts":{"test":"mocha -R spec test/remove-markdown.js"},"repository":{"type":"git","url":"git+https://github.com/stiang/remove-markdown.git"},"keywords":["markdown"],"author":{"name":"Stian Grytøyr"},"license":"MIT","bugs":{"url":"https://github.com/stiang/remove-markdown/issues"},"homepage":"https://github.com/stiang/remove-markdown","devDependencies":{"chai":"^4.0.2","mocha":"^2.1.0","should":"^5.0.0"},"gitHead":"1865f68e04164e3bb99205b7530f12b9d4eed67a","_id":"remove-markdown@0.2.1","_shasum":"1799cd8551d1942f4f308e5685436be9930c28fe","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"stiang","email":"stian@grytoyr.net"},"dist":{"shasum":"1799cd8551d1942f4f308e5685436be9930c28fe","size":3646,"noattachment":false,"key":"/remove-markdown/-/remove-markdown-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/remove-markdown/download/remove-markdown-0.2.1.tgz"},"maintainers":[{"name":"stiang","email":"stian@grytoyr.net"},{"name":"zuchka","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remove-markdown-0.2.1.tgz_1501676761125_0.07825439400039613"},"directories":{},"publish_time":1501676762048,"_hasShrinkwrap":false,"_cnpm_publish_time":1501676762048},"0.2.0":{"name":"remove-markdown","version":"0.2.0","description":"Remove Markdown formatting from text","main":"index.js","scripts":{"test":"mocha -R spec test/remove-markdown.js"},"repository":{"type":"git","url":"git+https://github.com/stiang/remove-markdown.git"},"keywords":["markdown"],"author":{"name":"Stian Grytøyr"},"license":"MIT","bugs":{"url":"https://github.com/stiang/remove-markdown/issues"},"homepage":"https://github.com/stiang/remove-markdown","devDependencies":{"chai":"^4.0.2","mocha":"^2.1.0","should":"^5.0.0"},"gitHead":"903040adc1545a79694fabc67cc7f95d02c50ad3","_id":"remove-markdown@0.2.0","_shasum":"47f5efe3478db48c265db41e4706676a6820ec95","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"stiang","email":"stian@grytoyr.net"},"dist":{"shasum":"47f5efe3478db48c265db41e4706676a6820ec95","size":3483,"noattachment":false,"key":"/remove-markdown/-/remove-markdown-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/remove-markdown/download/remove-markdown-0.2.0.tgz"},"maintainers":[{"name":"stiang","email":"stian@grytoyr.net"},{"name":"zuchka","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remove-markdown-0.2.0.tgz_1498041778460_0.7381681355182081"},"directories":{},"publish_time":1498041779423,"_cnpm_publish_time":1498041779423,"_hasShrinkwrap":false},"0.1.0":{"name":"remove-markdown","version":"0.1.0","description":"Remove Markdown formatting from text","main":"index.js","scripts":{"test":"mocha -R spec test/remove-markdown.js"},"repository":{"type":"git","url":"git+https://github.com/stiang/remove-markdown.git"},"keywords":["markdown"],"author":{"name":"Stian Grytøyr"},"license":"MIT","bugs":{"url":"https://github.com/stiang/remove-markdown/issues"},"homepage":"https://github.com/stiang/remove-markdown","devDependencies":{"mocha":"^2.1.0","should":"^5.0.0"},"gitHead":"a949da209fb70321a7b55eba92f3460741b24c30","_id":"remove-markdown@0.1.0","_shasum":"cf8b66e9e6fcb4acc9721048adeee7a357698ba9","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"stiang","email":"stian@grytoyr.net"},"maintainers":[{"name":"stiang","email":"stian@grytoyr.net"},{"name":"zuchka","email":""}],"dist":{"shasum":"cf8b66e9e6fcb4acc9721048adeee7a357698ba9","size":2759,"noattachment":false,"key":"/remove-markdown/-/remove-markdown-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/remove-markdown/download/remove-markdown-0.1.0.tgz"},"directories":{},"publish_time":1453156874227,"_cnpm_publish_time":1453156874227,"_hasShrinkwrap":false},"0.0.6":{"name":"remove-markdown","version":"0.0.6","description":"Remove Markdown formatting from text","main":"index.js","scripts":{"test":"mocha -R spec test/remove-markdown.js"},"repository":{"type":"git","url":"https://github.com/stiang/remove-markdown.git"},"keywords":["markdown"],"author":{"name":"Stian Grytøyr"},"license":"MIT","bugs":{"url":"https://github.com/stiang/remove-markdown/issues"},"homepage":"https://github.com/stiang/remove-markdown","devDependencies":{"mocha":"^2.1.0","should":"^5.0.0"},"gitHead":"ebff2d163feea325d8e07eb7fffb907701d47445","_id":"remove-markdown@0.0.6","_shasum":"9952da988ace1892ac5f5e7a0431b609ea444c67","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"stiang","email":"stian@grytoyr.net"},"maintainers":[{"name":"stiang","email":"stian@grytoyr.net"},{"name":"zuchka","email":""}],"dist":{"shasum":"9952da988ace1892ac5f5e7a0431b609ea444c67","size":2637,"noattachment":false,"key":"/remove-markdown/-/remove-markdown-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/remove-markdown/download/remove-markdown-0.0.6.tgz"},"directories":{},"publish_time":1436947558302,"_cnpm_publish_time":1436947558302,"_hasShrinkwrap":false},"0.0.5":{"name":"remove-markdown","version":"0.0.5","description":"Remove Markdown formatting from text","main":"index.js","scripts":{"test":"mocha -R spec test/remove-markdown.js"},"repository":{"type":"git","url":"https://github.com/stiang/remove-markdown.git"},"keywords":["markdown"],"author":{"name":"Stian Grytøyr"},"license":"MIT","bugs":{"url":"https://github.com/stiang/remove-markdown/issues"},"homepage":"https://github.com/stiang/remove-markdown","devDependencies":{"mocha":"^2.1.0","should":"^5.0.0"},"gitHead":"6f0c804494127cefaf144a1e295e9ec17cc06f75","_id":"remove-markdown@0.0.5","_shasum":"d4f4c68108d9a9b927b6f5856a4dad5488148e96","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"stiang","email":"stian@grytoyr.net"},"maintainers":[{"name":"stiang","email":"stian@grytoyr.net"},{"name":"zuchka","email":""}],"dist":{"shasum":"d4f4c68108d9a9b927b6f5856a4dad5488148e96","size":2534,"noattachment":false,"key":"/remove-markdown/-/remove-markdown-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/remove-markdown/download/remove-markdown-0.0.5.tgz"},"directories":{},"publish_time":1432145610800,"_cnpm_publish_time":1432145610800,"_hasShrinkwrap":false},"0.0.4":{"name":"remove-markdown","version":"0.0.4","description":"Remove Markdown formatting from text","main":"index.js","scripts":{"test":"mocha -R spec test/remove-markdown.js"},"repository":{"type":"git","url":"https://github.com/stiang/remove-markdown.git"},"keywords":["markdown"],"author":{"name":"Stian Grytøyr"},"license":"MIT","bugs":{"url":"https://github.com/stiang/remove-markdown/issues"},"homepage":"https://github.com/stiang/remove-markdown","devDependencies":{"mocha":"^2.1.0","should":"^5.0.0"},"gitHead":"08c6814c1670d7fc28072874970b7d1718bd7629","_id":"remove-markdown@0.0.4","_shasum":"7d11f1282ddb4e7fc4b855e3072dda5f06217022","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"stiang","email":"stian@grytoyr.net"},"maintainers":[{"name":"stiang","email":"stian@grytoyr.net"},{"name":"zuchka","email":""}],"dist":{"shasum":"7d11f1282ddb4e7fc4b855e3072dda5f06217022","size":2531,"noattachment":false,"key":"/remove-markdown/-/remove-markdown-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/remove-markdown/download/remove-markdown-0.0.4.tgz"},"directories":{},"publish_time":1432109990443,"_cnpm_publish_time":1432109990443,"_hasShrinkwrap":false},"0.0.2":{"name":"remove-markdown","version":"0.0.2","description":"Remove Markdown formatting from text","main":"index.js","scripts":{"test":"mocha -R spec test/remove-markdown.js"},"repository":{"type":"git","url":"https://github.com/stiang/remove-markdown.git"},"keywords":["markdown"],"author":{"name":"Stian Grytøyr"},"license":"MIT","bugs":{"url":"https://github.com/stiang/remove-markdown/issues"},"homepage":"https://github.com/stiang/remove-markdown","devDependencies":{"mocha":"^2.1.0","should":"^5.0.0"},"_id":"remove-markdown@0.0.2","_shasum":"0efa668a25f3dcdf78efc3c5a6916e2287ac00c8","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"stiang","email":"stian@grytoyr.net"},"maintainers":[{"name":"stiang","email":"stian@grytoyr.net"},{"name":"zuchka","email":""}],"dist":{"shasum":"0efa668a25f3dcdf78efc3c5a6916e2287ac00c8","size":2494,"noattachment":false,"key":"/remove-markdown/-/remove-markdown-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/remove-markdown/download/remove-markdown-0.0.2.tgz"},"directories":{},"publish_time":1423997405701,"_cnpm_publish_time":1423997405701,"_hasShrinkwrap":false},"0.0.1":{"name":"remove-markdown","version":"0.0.1","description":"Remove Markdown formatting from text","main":"index.js","scripts":{"test":"mocha -R spec test/remove-markdown.js"},"repository":{"type":"git","url":"https://github.com/stiang/remove-markdown.git"},"keywords":["markdown"],"author":{"name":"Stian Grytøyr"},"license":"MIT","bugs":{"url":"https://github.com/stiang/remove-markdown/issues"},"homepage":"https://github.com/stiang/remove-markdown","devDependencies":{"mocha":"^2.1.0","should":"^5.0.0"},"_id":"remove-markdown@0.0.1","_shasum":"229c040ec1c7c65cf5ca6737773822f180fa20f6","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"stiang","email":"stian@grytoyr.net"},"maintainers":[{"name":"stiang","email":"stian@grytoyr.net"},{"name":"zuchka","email":""}],"dist":{"shasum":"229c040ec1c7c65cf5ca6737773822f180fa20f6","size":2473,"noattachment":false,"key":"/remove-markdown/-/remove-markdown-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/remove-markdown/download/remove-markdown-0.0.1.tgz"},"directories":{},"publish_time":1423990053024,"_cnpm_publish_time":1423990053024,"_hasShrinkwrap":false}},"readme":"![default workflow](https://github.com/stiang/remove-markdown/actions/workflows/default.yaml/badge.svg)\n\n## 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","_attachments":{},"homepage":"https://github.com/zuchka/remove-markdown","bugs":{"url":"https://github.com/zuchka/remove-markdown/issues"},"license":"MIT"}