{"_id":"markdown-it-ruby","_rev":"7-f4ce443c4d0cac9406cccbeb170a4d13","name":"markdown-it-ruby","dist-tags":{"latest":"1.1.2"},"versions":{"0.1.0":{"name":"markdown-it-ruby","version":"0.1.0","author":{"name":"Hiroshi Takase"},"license":"MIT","_id":"markdown-it-ruby@0.1.0","maintainers":[{"name":"lost_and_found","email":"itshustletime@gmail.com"}],"homepage":"https://github.com/lostandfound/markdown-it-ruby","bugs":{"url":"https://github.com/lostandfound/markdown-it-ruby/issues"},"dist":{"shasum":"fda3383626f9d006e2ba7e6e27e364236b3d0a38","tarball":"https://registry.npmjs.org/markdown-it-ruby/-/markdown-it-ruby-0.1.0.tgz","integrity":"sha512-x2b+14kKChhXqxaQtK6F5xCjdGCAGk8j4eTQ5Ihpql7tFyT2kj1XguzKE4gun4lecr+thOAClphBJbRyvjMtww==","signatures":[{"sig":"MEYCIQD1lRgNII4ugPUeAl1kRFbqFv8tLWen0+1jQXpYXwWs4AIhANZJztYymPsYs1Epz5xxa/t6ygFZNnD2aiPpO8Sf2vAn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"fda3383626f9d006e2ba7e6e27e364236b3d0a38","gitHead":"0b618479789f0bdc4ae8201cde5cdf100d55fbf6","scripts":{"lint":"eslint ./index.js","test":"mocha"},"_npmUser":{"name":"lost_and_found","email":"itshustletime@gmail.com"},"keyswords":["markdown-it","markdown-it-plugin"],"repository":{"url":"git+https://github.com/lostandfound/markdown-it-ruby.git","type":"git"},"_npmVersion":"3.10.10","description":"Ruby annotation plugin for markdown-it parser.","_nodeVersion":"6.11.2","devDependencies":{"mocha":"^3.5.3","eslint":"^4.7.2","markdown-it":"^8.4.0","markdown-it-testgen":"^0.1.4","eslint-plugin-nodeca":"^1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/markdown-it-ruby-0.1.0.tgz_1506673622220_0.2377541228197515","host":"s3://npm-registry-packages"},"directories":{}},"0.1.1":{"name":"markdown-it-ruby","version":"0.1.1","keywords":["markdown-it","markdown-it-plugin"],"author":{"name":"Hiroshi Takase"},"license":"MIT","_id":"markdown-it-ruby@0.1.1","maintainers":[{"name":"lost_and_found","email":"itshustletime@gmail.com"}],"homepage":"https://github.com/lostandfound/markdown-it-ruby","bugs":{"url":"https://github.com/lostandfound/markdown-it-ruby/issues"},"dist":{"shasum":"6e2050a9b2c3275afc2844920d53cdffbbe12f78","tarball":"https://registry.npmjs.org/markdown-it-ruby/-/markdown-it-ruby-0.1.1.tgz","integrity":"sha512-ct8t/Drt7scv20VdaQtOhpBOC2SDICaW8E/WQS8kY2eUdu0eoDwW8ugXcCy8Vku4Y5CuA5qrewlHpwaFsJxbpQ==","signatures":[{"sig":"MEUCIQCpI/tO1FIIcLh3K9AIhav5yzGkHEBTNjQPx0ukjQfnSAIgXHaSLho2VCrADl4hVAaUxUQyMRS5M+0acXLnQyGWjLI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"6e2050a9b2c3275afc2844920d53cdffbbe12f78","gitHead":"ea7ec8a392f4ccef83a1ece42ae551f50b8a7e98","scripts":{"lint":"eslint ./index.js","test":"mocha"},"_npmUser":{"name":"lost_and_found","email":"itshustletime@gmail.com"},"repository":{"url":"git+https://github.com/lostandfound/markdown-it-ruby.git","type":"git"},"_npmVersion":"3.10.10","description":"Ruby annotation plugin for markdown-it parser.","_nodeVersion":"6.11.2","devDependencies":{"mocha":"^3.5.3","eslint":"^4.7.2","markdown-it":"^8.4.0","markdown-it-testgen":"^0.1.4","eslint-plugin-nodeca":"^1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/markdown-it-ruby-0.1.1.tgz_1506695954245_0.045138270827010274","host":"s3://npm-registry-packages"},"directories":{}},"1.0.0":{"name":"markdown-it-ruby","version":"1.0.0","keywords":["markdown-it","markdown-it-plugin"],"author":{"name":"Hiroshi Takase"},"license":"MIT","_id":"markdown-it-ruby@1.0.0","maintainers":[{"name":"lost_and_found","email":"itshustletime@gmail.com"}],"homepage":"https://github.com/lostandfound/markdown-it-ruby","bugs":{"url":"https://github.com/lostandfound/markdown-it-ruby/issues"},"dist":{"shasum":"a2d00a1a7a756741345b591df5ae07e4e4e98137","tarball":"https://registry.npmjs.org/markdown-it-ruby/-/markdown-it-ruby-1.0.0.tgz","fileCount":9,"integrity":"sha512-vFGLWQpKJNYfvAGQjEUvWaQnIkvP3jm5hnzO8SCuyro0bqsowZNCn9KIKwjUHEh94e4sc43xtlrACTO1EqtsdA==","signatures":[{"sig":"MEYCIQDrWmqP51U2rUttlPEy+p7FRmstAGGWqbs5yA/ev1ID6gIhAKVCPMIcMwLbzaDV8XWKz6FpcaD7FqzwuUXTKtprHdGg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13967},"main":"./index.cjs","type":"module","mocha":{"extensions":["js","mjs"]},"module":"./index.mjs","exports":{"import":"./index.mjs","require":"./index.cjs"},"gitHead":"d9a14e28e3113523060fa2abcb5d5565b9798f58","scripts":{"lint":"npx eslint .","test":"mocha"},"_npmUser":{"name":"lost_and_found","email":"itshustletime@gmail.com"},"repository":{"url":"git+https://github.com/lostandfound/markdown-it-ruby.git","type":"git"},"_npmVersion":"10.8.1","description":"Ruby annotation plugin for markdown-it parser.","directories":{},"_nodeVersion":"22.4.1","_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.7.3","eslint":"^9.13.0","globals":"^15.11.0","@eslint/js":"^9.13.0","typescript":"^5.6.3","markdown-it":"^14.1.0","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.11.0","markdown-it-testgen":"^0.1.4","eslint-plugin-nodeca":"^1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/markdown-it-ruby_1.0.0_1729957245225_0.6630692955133031","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"markdown-it-ruby","version":"1.1.0","keywords":["markdown-it","markdown-it-plugin"],"author":{"name":"Hiroshi Takase"},"license":"MIT","_id":"markdown-it-ruby@1.1.0","maintainers":[{"name":"lost_and_found","email":"itshustletime@gmail.com"}],"homepage":"https://github.com/lostandfound/markdown-it-ruby","bugs":{"url":"https://github.com/lostandfound/markdown-it-ruby/issues"},"dist":{"shasum":"1c9d1d4c6dc8aeaba9a7306e3c49e4c4fc7f6156","tarball":"https://registry.npmjs.org/markdown-it-ruby/-/markdown-it-ruby-1.1.0.tgz","fileCount":9,"integrity":"sha512-Qy61wmnw4Rna5chHiwftcMgt1Gh5QFe/bnT621dJ1oG4i62Eux3iXYxh1DoRp53cp4g/OdqFx3lx4dDFm2YPOg==","signatures":[{"sig":"MEQCIAeIdjPNZT1OoZNgW4MvnEMwkmIWFK/GrsYDdOmfgaApAiAkNufpuql9Eq+isWgsD3VfbBKnB/kGoySCZh2onh4g+A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17523},"main":"./index.cjs","type":"module","mocha":{"extensions":["js","mjs"]},"module":"./index.mjs","exports":{"import":"./index.mjs","require":"./index.cjs"},"gitHead":"f61f78b2895dca6e4b00d3e4bab4cbc815c75663","scripts":{"lint":"npx eslint .","test":"mocha"},"_npmUser":{"name":"lost_and_found","email":"itshustletime@gmail.com"},"repository":{"url":"git+https://github.com/lostandfound/markdown-it-ruby.git","type":"git"},"_npmVersion":"10.8.1","description":"Ruby annotation plugin for markdown-it parser.","directories":{},"_nodeVersion":"22.4.1","_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.7.3","eslint":"^9.13.0","globals":"^15.11.0","@eslint/js":"^9.13.0","typescript":"^5.6.3","markdown-it":"^14.1.0","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.11.0","markdown-it-testgen":"^0.1.4","eslint-plugin-nodeca":"^1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/markdown-it-ruby_1.1.0_1729963250446_0.52013808679009","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"markdown-it-ruby","version":"1.1.1","keywords":["markdown-it","markdown-it-plugin"],"author":{"name":"Hiroshi Takase"},"license":"MIT","_id":"markdown-it-ruby@1.1.1","maintainers":[{"name":"lost_and_found","email":"itshustletime@gmail.com"}],"homepage":"https://github.com/lostandfound/markdown-it-ruby","bugs":{"url":"https://github.com/lostandfound/markdown-it-ruby/issues"},"dist":{"shasum":"c994ad4d84deff36383d47847958bb8510c7f448","tarball":"https://registry.npmjs.org/markdown-it-ruby/-/markdown-it-ruby-1.1.1.tgz","fileCount":11,"integrity":"sha512-LI70Ea5gqFyKR4YLvA+HsW1HOuJssiW6skhVU4f2Cl/0o89FqvwgfUSRxdnYl/T3oT4QzIGOws2EsT1Y6lqeUg==","signatures":[{"sig":"MEUCIHDjXO2ngjjQDhXCxYIvQu9zhoyvxwU2jWpsEEul0OgNAiEAmWoebcm7Ni6VzIx8+JjQplUC4gzBRQjTnflOWDr/cs0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20629},"main":"./index.cjs","type":"module","mocha":{"extensions":["js","mjs"]},"module":"./index.mjs","exports":{"import":"./index.mjs","require":"./index.cjs"},"gitHead":"86d408dc185253ca739a242c2861e22a701c774d","scripts":{"lint":"npx eslint .","test":"mocha"},"_npmUser":{"name":"lost_and_found","email":"itshustletime@gmail.com"},"repository":{"url":"git+https://github.com/lostandfound/markdown-it-ruby.git","type":"git"},"_npmVersion":"10.8.1","description":"Ruby annotation plugin for markdown-it parser.","directories":{},"_nodeVersion":"22.4.1","_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.7.3","eslint":"^9.13.0","globals":"^15.11.0","@eslint/js":"^9.13.0","typescript":"^5.6.3","markdown-it":"^14.1.0","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.11.0","markdown-it-testgen":"^0.1.4","eslint-plugin-nodeca":"^1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/markdown-it-ruby_1.1.1_1730997674155_0.6951909592996395","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"markdown-it-ruby","version":"1.1.2","description":"Ruby annotation plugin for markdown-it parser.","keywords":["markdown-it","markdown-it-plugin"],"license":"MIT","type":"module","exports":{"import":"./index.mjs","require":"./index.cjs"},"main":"./index.cjs","module":"./index.mjs","repository":{"type":"git","url":"git+https://github.com/lostandfound/markdown-it-ruby.git"},"homepage":"https://github.com/lostandfound/markdown-it-ruby","scripts":{"test":"mocha","lint":"npx eslint ."},"mocha":{"extensions":["js","mjs"]},"author":{"name":"Hiroshi Takase"},"devDependencies":{"@eslint/js":"^9.13.0","@types/eslint__js":"^8.42.3","eslint":"^9.13.0","eslint-plugin-nodeca":"^1.0.3","globals":"^15.11.0","markdown-it":"^14.1.0","markdown-it-testgen":"^0.1.4","mocha":"^10.7.3","typescript":"^5.6.3","typescript-eslint":"^8.11.0"},"_id":"markdown-it-ruby@1.1.2","gitHead":"5b3c0929da33d905d4c2a9abddfcdd3f39ecd4e3","bugs":{"url":"https://github.com/lostandfound/markdown-it-ruby/issues"},"_nodeVersion":"22.4.1","_npmVersion":"10.8.1","dist":{"integrity":"sha512-tFAuH3HlxiFmx0JtqA02uBKjTZF7ICQu/g3tVf3vwU+ZVPTAMAjWUqcMuj5icO3vwJWSTeST8+D34blL7Q41gA==","shasum":"678509421101813764526a6ee0d1c037bdd40fad","tarball":"https://registry.npmjs.org/markdown-it-ruby/-/markdown-it-ruby-1.1.2.tgz","fileCount":11,"unpackedSize":21335,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC/IorP6Jb6PXMGNu5Ehr5vGIWfrDUIjBdFyb2mv1JbwAiEAhN4Q8mc7sQW7hXnNKCm9bYEtYRKYgH+1+rjuokj5OAs="}]},"_npmUser":{"name":"lost_and_found","email":"itshustletime@gmail.com"},"directories":{},"maintainers":[{"name":"lost_and_found","email":"itshustletime@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-it-ruby_1.1.2_1732804737140_0.46786641337650625"},"_hasShrinkwrap":false}},"time":{"created":"2017-09-29T08:27:02.495Z","modified":"2024-11-28T14:38:57.527Z","0.1.0":"2017-09-29T08:27:02.495Z","0.1.1":"2017-09-29T14:39:14.308Z","1.0.0":"2024-10-26T15:40:45.417Z","1.1.0":"2024-10-26T17:20:50.645Z","1.1.1":"2024-11-07T16:41:14.342Z","1.1.2":"2024-11-28T14:38:57.358Z"},"bugs":{"url":"https://github.com/lostandfound/markdown-it-ruby/issues"},"author":{"name":"Hiroshi Takase"},"license":"MIT","homepage":"https://github.com/lostandfound/markdown-it-ruby","keywords":["markdown-it","markdown-it-plugin"],"repository":{"type":"git","url":"git+https://github.com/lostandfound/markdown-it-ruby.git"},"description":"Ruby annotation plugin for markdown-it parser.","maintainers":[{"name":"lost_and_found","email":"itshustletime@gmail.com"}],"readme":"# markdown-it-ruby\n\n[![NPM version](https://img.shields.io/npm/v/markdown-it-ruby.svg?style=flat)](https://www.npmjs.org/package/markdown-it-ruby)\n\n> Ruby annotations (`<ruby>`) tag plugin for [markdown-it](https://github.com/markdown-it/markdown-it) markdown parser.\n\n`{ruby base|ruby text}` => `<ruby>ruby base<rt>ruby text</rt></ruby>`\n\nMarkup is based on [DenDenMarkdown](https://conv.denshochan.com/markdown) definition. \n\n\n## Install\n\n```bash\nnpm install markdown-it-ruby --save\n```\n\n## Usage\n\n### ESM (Recommended)\n```js\nimport MarkdownIt from 'markdown-it';\nimport rubyPlugin from 'markdown-it-ruby';\n\nconst md = new MarkdownIt().use(rubyPlugin);\nmd.render('{ruby base|ruby text}'); // => '<p><ruby>ruby base<rt>ruby text</rt></ruby></p>'\n```\n\n### CommonJS\n```js\nconst MarkdownIt = require('markdown-it');\nconst rubyPlugin = require('markdown-it-ruby');\n\nconst md = new MarkdownIt().use(rubyPlugin);\nmd.render('{ruby base|ruby text}'); // => '<p><ruby>ruby base<rt>ruby text</rt></ruby></p>'\n```\n\n### Options\n\nYou can pass options to the plugin:\n\n```js\nconst md = new MarkdownIt().use(rubyPlugin, {\n  rp: ['(', ')'] // Add parentheses around ruby text\n});\n\n// Output: <ruby>漢字<rp>(</rp><rt>かんじ</rt><rp>)</rp></ruby>\nmd.render('{漢字|かんじ}');\n```\n\n#### Available Options\n\n| Option | Type | Default | Description |\n|--------|------|---------|-------------|\n| `rp` | `[string, string]` | `['', '']` | Array of opening and closing parentheses to wrap around ruby text. When both values are empty strings, no `rp` elements will be output. |\n\n## License\n\n[MIT](https://github.com/lostandfound/markdown-it-ruby/blob/master/LICENSE)\n","readmeFilename":"README.md"}