{"_id":"@putout/processor-markdown@14.2.1","tag":false,"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"dist":{"shasum":"3db34eab2d9fb0e8ce0e1e547e12108a6bdc6e46","tarball":"http://registry-npm.ywwl.com/@putout/processor-markdown/download/@putout/processor-markdown-14.2.1.tgz","fileCount":6,"integrity":"sha512-oFweMWckJyoSwaC31d53F1lTkOE/yRDHXzFPsu1w9C7JgnLZyXC02A2HWbsiarsUFQs8pH04UL+qpWXfIk9TnA==","signatures":[{"sig":"MEUCIDCNHpPPXkVOMGVZLuMOVmdw3FZktKQj8+vRiw4QiZ6kAiEAsoPsS7crW/mr6TbP89glUJZVIWx9DY6mTTNx0wH9jIQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEdY4JEQoAK5fnuwxTDSFIsmUjQWgvZ5oy0x8eNApjw3AiEA9w4y3yhpyEFoWOKSKpxKXbU0ZMadmBL1EtGKQCe3MMg="}],"unpackedSize":10461,"size":3756,"noattachment":false,"key":"/@putout/processor-markdown/-/@putout/processor-markdown-14.2.1.tgz"},"main":"./lib/markdown.js","name":"@putout/processor-markdown","type":"module","author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"engines":{"node":">=22"},"exports":{".":"./lib/markdown.js"},"gitHead":"0e15d607221ccf3666a8b3f18817017fa3cdeefb","license":"MIT","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"},"version":"14.2.1","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"homepage":"https://github.com/coderaiser/putout/tree/master/packages/processor-markdown#readme","keywords":["putout","putout-processor","markdown"],"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"12.1.0","description":"🐊Putout processor adds ability to parse markdown files and lint JavaScript, JSX, TypeScript and JSON snippets","directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_nodeVersion":"26.13.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","mdast-util-to-markdown":"^2.1.2","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":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/processor-markdown_14.2.1_1793264126541_0.7582488063716522"},"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":1793264126629,"_cnpm_publish_time":1793264126629,"dist-tags":{"latest":"14.2.1"}}