{"name":"@putout/processor-markdown","version":"14.0.4","keywords":["putout","putout-processor","markdown"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/processor-markdown@14.0.4","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/processor-markdown#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"f7d6fbe6ac02c4b300bffd7c12d149ff5142cf1e","tarball":"http://registry-npm.ywwl.com/@putout/processor-markdown/download/@putout/processor-markdown-14.0.4.tgz","fileCount":8,"integrity":"sha512-f0fH6pxwqG0h0OfuDMApnBJ9C43xf7N7F/cZ0pgI/O4wlXVmhRARUERK8IZXV4B5TT/Fik3d1OatsuY6DPD6QA==","signatures":[{"sig":"MEYCIQDyHAt2mkbm/0/2tnbyYWH30BjKzZCabY9Qo8kVIEAl1AIhAKwnIvyB5HJPTgFnPKKJORM9ZlaxjydmFI93/VgAK3u2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10325,"size":3591,"noattachment":false,"key":"/@putout/processor-markdown/-/@putout/processor-markdown-14.0.4.tgz"},"main":"./lib/markdown.js","type":"module","engines":{"node":">=22"},"exports":{".":"./lib/markdown.js"},"gitHead":"6a4bf182a85baf74534499e34412e9126c5b7a00","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test","coverage:old":"madrun coverage:old"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.4.2","description":"🐊Putout processor adds ability to parse markdown files and lint JavaScript, JSX, TypeScript and JSON snippets","directories":{},"_nodeVersion":"26.3.0","dependencies":{"once":"^1.4.0","unified":"^11.0.3","happy-mark":"^1.0.2","remark-parse":"^11.0.0","remark-stringify":"^11.0.0","unist-util-visit":"^5.0.0","unified-lint-rule":"^3.0.0","remark-frontmatter":"^5.0.0","@putout/operator-json":"^3.0.0","remark-preset-lint-consistent":"^6.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madcut":"^3.0.0","madrun":"^13.0.0","montag":"^2.0.0","putout":"*","nodemon":"^3.0.1","superc8":"^12.0.0","supertape":"^13.0.0","@putout/test":"^15.0.0","eslint-plugin-putout":"^31.0.0"},"_npmOperationalInternal":{"tmp":"tmp/processor-markdown_14.0.4_1781431540846_0.2801745573742922","host":"s3://npm-registry-packages-npm-production"},"readme":"# @putout/processor-markdown [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/processor-markdown.svg?style=flat\\&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/processor-markdown \"npm\"\n\n> **Markdown**, the simple and easy-to-use markup language you can use to format virtually any document.\n>\n> (c) [markdownguide.org](https://www.markdownguide.org/)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) processor adds ability to get **JavaScript**, **JSX**, **JSON** and **TypeScript** code from **Markdown** files.\n\n## Install\n\n```\nnpm i @putout/processor-markdown -D\n```\n\n## Config\n\n```json\n{\n    \"processors\": [\"markdown\"]\n}\n```\n\n## Usage\n\nProcessor converts `markdown` to JavaScript, it looks like this.\n\n```yaml\n# hello\n```\n\nBecame:\n\n```js\n__putout_processor_markdown([\n    header(1, 'hello'),\n]);\n```\n\n### Writing Putout Plugins for Markdown\n\n#### The core idea\n\nUnder the hood, `@putout/processor-markdown` uses a small library called [`happy-mark`](https://github.com/coderaiser/happy-mark) to turn your document into nested function calls. A heading becomes a call to `heading(...)`, a paragraph becomes `paragraph(...)`, a link becomes `link(...)`, and so on. For example, this Markdown:\n\n```md\n# Hello world\n\nSome *emphasis* and a [link](https://example.com).\n```\n\nturns into this JavaScript:\n\n```js\nheading(1, 'Hello world');\nparagraph('Some ', italic('emphasis'), ' and a ', link('link', 'https://example.com'), '.');\n```\n\n## Rules\n\nCheckout `markdown`-related rules in [`@putout/plugin-markdown`](https://github.com/coderaiser/putout/tree/master/packages/plugin-markdown)\n\n## License\n\nMIT\n","publish_time":1781431540997,"_cnpm_publish_time":1781431540997,"dist-tags":{"latest":"14.2.1"}}