{"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","tarball":"http://registry-npm.ywwl.com/remove-markdown/download/remove-markdown-0.3.0.tgz","fileCount":7,"unpackedSize":17301,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbCnZiCRA9TVsSAnZWagAANikP/1r2a5mdBsJpNNiikwTU\nIYlU0wnaKBlpR1aJ21VoCmPpXUTsMjkJq+bY7Gu65Bf9fkmug9RJM7JRF21o\nkJC0vOEMies/+bfwrROhWUH/oESNczoM/mYB266WXpSZB/Ip3+veMYm6F1zt\nQo1S0n7YDt0kD/SI0JN11jX/zw3qGF1vvUZPJIAGq4takPpSnaS+4oS6zwHP\nSt/kNoy1fExxFLDKcQMqDD1Nl4i6kVHsyIqP4wQSwZ/AzfovdijOk/3zGaHv\ndTFRGx98p3awPFuoYXc/QMt4WAR+KbNty34KaJ68Oe6Tdomphtd4e/QpwQjs\nCFX0SBRjb4hmTLdNArHVveYkzi9vI2MNtg2pisWu26Z2c28mYNDs6H/aTdc+\n2OpPl03+JXh8wiHOammhvfOeam6h3smIwPjdSwK/JJbj4GAhsNBxCL+hHrEA\nzrlQItLZqb5V+ppTniaMgXKeJnT2HiijzUiIWUUNw6xSZZ1gD7aub3rSXNui\nkmR+G2ohyPnc8C6xRXceEKLzKYRmUKrxaectjp7xiyyskzDy5+9W+BJtcHzF\nXV31YR3ybYW0s3ZkzgzmYWgRjb0sBRBCBogauQ/C7bA9PWjtORlh2gzEW2kt\n4RNhTGv8J+ayQnq9JxIwBU2jlK3MX8GxxmZDSGX208a3V1ggDhxT/yeVBWBZ\nPp5L\r\n=xpNo\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-5392eIuy1mhjM74739VunOlsOYKjsH82rQcTBlJ1bkICVC3dQ3ksQzTHh4jGHQFnM+1xzLzcFOMH+BofqXhroQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNppGjaid7D0gP8FkkXVgCGx65gHcpcLQbc9OBULeKUQIhAP28vWyXc7khrv4uR0/w4b1IwrY6vt4b3oVHEKmVjKVc"}],"size":5805,"noattachment":false,"key":"/remove-markdown/-/remove-markdown-0.3.0.tgz"},"maintainers":[{"name":"stiang","email":"stian@grytoyr.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remove-markdown_0.3.0_1527412321622_0.4989741481270147"},"_hasShrinkwrap":false,"readme":"[![CircleCI](https://circleci.com/gh/stiang/remove-markdown.svg?style=svg&circle-token=cac2feef7dc90e6b8578aec361be369412be1c6a)](https://circleci.com/gh/stiang/remove-markdown)\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## Author\nStian Grytøyr\n","publish_time":1527412321702,"_cnpm_publish_time":1527412321702,"dist-tags":{"latest":"0.8.0","next":"0.7.0-rc.1"}}