{"_id":"rehype-title-figure","_rev":"9-e0bf3e57f2ca2b329042a8b602494ab3","time":{"created":"2021-05-08T05:14:55.405Z","0.1.0":"2021-05-08T05:14:55.572Z","modified":"2022-05-15T17:23:15.287Z","0.1.1":"2021-05-11T02:55:02.633Z","0.1.2":"2022-03-28T04:53:26.385Z"},"name":"rehype-title-figure","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"rehype-title-figure","version":"0.1.0","main":"lib/index.js","scripts":{"test":"jest","build":"tsc","format":"prettier {src,tests}/**/*.ts -w","release":"standard-version","_postinstall":"husky install","prepublishOnly":"yarn build && pinst --disable","postpublish":"pinst --enable"},"repository":{"type":"git","url":"git@github.com/y-temp4/rehype-title-figure.git"},"author":{"name":"y-temp4","email":"y.temp4@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/y-temp4/rehype-title-figure/issues"},"keywords":["remark","rehype","rehype-plugin"],"devDependencies":{"@commitlint/cli":"12.1.1","@commitlint/config-conventional":"12.1.1","@types/hast":"2.3.1","@types/jest":"26.0.23","hast":"1.0.0","husky":"6.0.0","jest":"26.6.3","pinst":"2.1.6","prettier":"2.2.1","rehype-raw":"5.1.0","rehype-stringify":"8.0.0","remark-parse":"9.0.0","remark-rehype":"8.1.0","standard-version":"9.2.0","to-vfile":"6.1.0","ts-jest":"26.5.5","typescript":"4.2.4","unified":"9.2.1"},"dependencies":{"hastscript":"6.0.0","unist-util-visit":"2.0.3"},"gitHead":"adf22757eb001fd3d88b79f93b6f2996da5a422e","description":"[Rehype](https://github.com/rehypejs/rehype) plugin that adds a caption using the title attribute of an img.","_id":"rehype-title-figure@0.1.0","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-xidb4a8c97u8KZ/K09f8kRFt8AAEdNY/S+SYY40p3heRR9imfpX8rYpW7eCctsl3RDaDQ8piXgwuSQZAmwqp1A==","shasum":"4491cb6fae0b0238d77a584e02a0df20a1a56dc3","tarball":"https://registry.npmjs.org/rehype-title-figure/-/rehype-title-figure-0.1.0.tgz","fileCount":6,"unpackedSize":5317,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJglh5PCRA9TVsSAnZWagAADtYP/2T/8pvwPTR0rAd9mL5O\nmyB7jSHk9AGCDk9qQibycmUOF46aVrvsXe2U2iNvFlGViH3TlNoQEX0w6/7v\nbjG/L134RkFq4NNeaz4+yBmNZXt61cITmX5tLfBw+7Mu+5ODRWrd/V+rqcR4\nejPZSZgYF5XjHYDNd4lhxymGI06ci/XYDxDSxLiisl0LzFgn76uh5JHLcCVX\nZeWgBdKholwlVlX0nIKS7xPG3VosYVwFdUKH91iKRBGsuoZG7pm4ISfgc8r7\njON6pnR+o6EWHHEoV+u5QV6YPrxpJdxheBLo6hUNQO8rZ9ZEJNr6vUH/zT2Y\nkxdJs7YbTY0JWQ0W4y6ZVCupPZ9DGShV2Q9amVoJeXDtcis5Iltm01IUEXuP\nJvfAeCfwR+X0HOFLp9wcMhiWihnYUbl0Xa6uTit3Y3R6dtX/wH7o+N0oyY8d\n5DybWWl7ektl5LiIPPalzTlN778nnrTwZBg2lsXpLIGODySTHtNTr1o8wzVF\n1K0RgWa36SLkrcIwJjAfCmezDnRwzwqA1ykkywKaqhppdF1m/xdHdV5yPEiH\n3KQS6ohpjEgxz8nGkjOUKXI1bvCpO+bbcUu12d4YL12wczu4WFMAwHaG1v74\n6rWiibfRhBrn4oHBvnJN7gl6oZf3q9lvoSmuF+XE7WFWqkyLsLpXE3DZQMSI\n1xUe\r\n=D5MS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDYFclH1LaA8OiMnCywH4II7ZaIjovFFXP5KNBRIhK5WAiEAkANS6hwMPcM+p4RRKyMeeBcKrWfKb9mE67dsGu3AC70="}]},"_npmUser":{"name":"y-temp4","email":"y.temp4@gmail.com"},"directories":{},"maintainers":[{"name":"y-temp4","email":"y.temp4@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-title-figure_0.1.0_1620450895405_0.9855702952032963"},"_hasShrinkwrap":false},"0.1.1":{"name":"rehype-title-figure","version":"0.1.1","description":"Rehype plugin that adds a caption using the title attribute of the img.","main":"lib/index.js","scripts":{"test":"jest","build":"tsc","format":"prettier {src,tests}/**/*.ts -w","release":"standard-version","_postinstall":"husky install","prepublishOnly":"yarn build && pinst --disable","postpublish":"pinst --enable"},"repository":{"type":"git","url":"git+https://github.com/y-temp4/rehype-title-figure.git"},"homepage":"https://github.com/y-temp4/rehype-title-figure#readme","author":{"name":"y-temp4","email":"y.temp4@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/y-temp4/rehype-title-figure/issues"},"keywords":["remark","rehype","rehype-plugin"],"devDependencies":{"@commitlint/cli":"12.1.1","@commitlint/config-conventional":"12.1.1","@types/hast":"2.3.1","@types/jest":"26.0.23","hast":"1.0.0","husky":"6.0.0","jest":"26.6.3","pinst":"2.1.6","prettier":"2.2.1","rehype-raw":"5.1.0","rehype-stringify":"8.0.0","remark-parse":"9.0.0","remark-rehype":"8.1.0","standard-version":"9.2.0","to-vfile":"6.1.0","ts-jest":"26.5.5","typescript":"4.2.4","unified":"9.2.1"},"dependencies":{"hastscript":"6.0.0","unist-util-visit":"2.0.3"},"gitHead":"a6155ed9e5338c45e07b335a9ac315ad12ccadec","_id":"rehype-title-figure@0.1.1","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-O/j+44h+qifqu3m9+kpHn3Bisl7SygOCIbOqlNlAhFWGpo6n1nE9oTpvSL/Cqk5sEhXuvNcMhHuAGUqaqDvcUA==","shasum":"431c872514c314ec2aebc919889871b0aa614f1c","tarball":"https://registry.npmjs.org/rehype-title-figure/-/rehype-title-figure-0.1.1.tgz","fileCount":6,"unpackedSize":6432,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmfIHCRA9TVsSAnZWagAAqz8P/1+0vBSwVifKJhu97kU8\npQj81XOXFLzGqsmf04pDptty2E81rGqJK1LQMPYVqgauOMy/cXcdoYVu4Xa7\nKkj2O4Wvq/+7YUoOOnK18/NIR07fPWoo1JPZzPZUtozF4yROgg4BwflIEH7B\nqjgA7jAN5oUuVTTuIdaV6jw5vVAIvly5jQqeLNLVy5+Wi2wZ6+eQRuIDJ+oP\noGuclWow67bpGdHziaRyA/UZmZYquVpvxmKbds7QCU1/ERKDKtajWouRPKWC\nxfjgD0usENHuzT8MGdkHNm0I2BS1oIn3Z1K03fkbK4Cwm0rHrLFVVJl2n3jb\nIUInezKKQzUWxf1F2mlgIQZBDXPeOZKbKbmD7oDUc7W8/RO01iYGiuvs/cAU\n0KVNXpdrPGFR7qVXaCzaFsNrU8KyNFvH+FU7wbP390fBg12lOYYbKHWEv/th\n9hxZ1p7zFKEd+acrZB4+AM426EuNKDNY5Wh3vSfvlcslKZNXfIeCXqiPpkj9\n9Ro/L/uFeOahDiv52pVUqYq/WnbbVlS/jcavUXCIAlYE1ep1NSE+1vzwPMxa\niwlerT+/bs+o1FOgHQ0a8UQiKnYnsr59a7OGE52C0pA7FPhX9Ul6Oco2mGJ3\nDgE1QB/r9O0B0Na/kcLjH3P/pBSnzATs12B9oh96xg44nWM71CKa3QQWBAqK\nC0vJ\r\n=PYf2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9hNsgFhrKotgTFq3YD4wjxmoOiPOa5vvCnkKUhYBg4wIhAPLk4EEx4A6/AX0+7h+6Rxtx/Kfpna7AkM92iuXqfSKu"}]},"_npmUser":{"name":"y-temp4","email":"y.temp4@gmail.com"},"directories":{},"maintainers":[{"name":"y-temp4","email":"y.temp4@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-title-figure_0.1.1_1620701702426_0.19092396730374572"},"_hasShrinkwrap":false},"0.1.2":{"name":"rehype-title-figure","version":"0.1.2","description":"Rehype plugin that adds a caption using the title attribute of the img.","main":"lib/index.js","scripts":{"test":"jest","build":"tsc","clean":"rimraf lib","format":"prettier {src,tests}/**/*.ts -w","release":"standard-version","_postinstall":"husky install","prepublishOnly":"yarn clean && yarn build && pinst --disable","postpublish":"pinst --enable"},"repository":{"type":"git","url":"git+https://github.com/y-temp4/rehype-title-figure.git"},"homepage":"https://github.com/y-temp4/rehype-title-figure#readme","author":{"name":"y-temp4","email":"y.temp4@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/y-temp4/rehype-title-figure/issues"},"keywords":["remark","rehype","rehype-plugin"],"devDependencies":{"@commitlint/cli":"12.1.1","@commitlint/config-conventional":"12.1.1","@types/hast":"2.3.1","@types/jest":"26.0.23","hast":"1.0.0","husky":"6.0.0","jest":"26.6.3","pinst":"2.1.6","prettier":"2.2.1","rehype-raw":"5.1.0","rehype-stringify":"8.0.0","remark-parse":"9.0.0","remark-rehype":"8.1.0","rimraf":"3.0.2","standard-version":"9.2.0","to-vfile":"6.1.0","ts-jest":"26.5.5","typescript":"4.2.4","unified":"9.2.1"},"dependencies":{"hastscript":"6.0.0","unist-util-visit":"2.0.3"},"types":"./lib/index.d.ts","gitHead":"92a5fc45be7747e1bfd308ee32c7ee03335c4309","_id":"rehype-title-figure@0.1.2","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-CHMIb46yg5/ocVYtLUlvxYSRLCLidijOkSBXRCebTWD6qOuJ3eo/J4gG4zri1Xo4fNH0C8KrA/J4aNdhikzYdQ==","shasum":"f1473a4ea5595a394df5b1cf8baa9caa74442e38","tarball":"https://registry.npmjs.org/rehype-title-figure/-/rehype-title-figure-0.1.2.tgz","fileCount":5,"unpackedSize":5922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQT9GACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZ/RAAgamfbLFTiJUWoI8KPFTVlPsaq0ueaztM6ks/DRiW12MePZZJ\r\n9iTsPe1bujXPiBwGwauLFQz/OKI+ImNiFuOZlNBUnrDNiSk306rGxEmtWImC\r\nOm/IVSMmBKPwiMzJIX84vpINEcE797LkXY++uTnMuZEn4jyczv/c8avsb28Y\r\nkWuxh4e6+erzjqwa9/eXQXD1+NVK9ytGLzqvAaP8/4y1MD+Zy8uW4IQ1FkMz\r\nwUQda/nQBzrdxAhXFBvG9xtM5TP8d+J3K4C1XTg7kjJe1+xQlyyFMJe8aIUX\r\nFb80RaVOvzCWlQwBA3WMg908ycZbLjeYhYpdS/Ls7XAfNS4HIIcFoijB9DMy\r\n5b1hV59+zSGYY9zqGRjfaHwIVqKCxlpSLgI+FWAoCYbck9RPbBuCYEE6rsdJ\r\nozzbwnmgbe8tpeqgA3xQcNCMNw32XM7HfmZoQCha8YCpwRI0ddxlBZmpZvth\r\nGDw0njXHGcKK5pXIU3PJeDzeg0kxPskhya/uQFaJaH+svLro1HbQ6IMC0iuJ\r\n2l9BOWsnzQ276GFlrc8a75xEcFkrPUlAh7+3k1iSXNorPLDO/KbY0udsFmVg\r\nalpNjEt0J+432sMO5ACduoPQfLDHWmOiCh4OEoAk4pUfBAN5p8QpU0jhMEBK\r\nvkJ3xoeqTPOY5/sW/lWjYWbyqq01sTCe+gM=\r\n=Jfil\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEkVmWvJ5hNXOiUdyM/xVzDldQDRTNMAivbWQdB9zcPEAiBAK8XPvrJ0+uXTLjQnteAjpNw90jvCKEW9aQO3tXHtsA=="}]},"_npmUser":{"name":"y-temp4","email":"y.temp4@gmail.com"},"directories":{},"maintainers":[{"name":"y-temp4","email":"y.temp4@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-title-figure_0.1.2_1648443206051_0.07905761012301538"},"_hasShrinkwrap":false}},"maintainers":[{"name":"y-temp4","email":"y.temp4@gmail.com"}],"description":"Rehype plugin that adds a caption using the title attribute of the img.","keywords":["remark","rehype","rehype-plugin"],"repository":{"type":"git","url":"git+https://github.com/y-temp4/rehype-title-figure.git"},"author":{"name":"y-temp4","email":"y.temp4@gmail.com"},"bugs":{"url":"https://github.com/y-temp4/rehype-title-figure/issues"},"license":"MIT","readme":"# rehype-title-figure\n\n[![main](https://github.com/y-temp4/rehype-title-figure/actions/workflows/main.yml/badge.svg)](https://github.com/y-temp4/rehype-title-figure/actions/workflows/main.yml)\n[![codecov](https://codecov.io/gh/y-temp4/rehype-title-figure/branch/master/graph/badge.svg?token=JQZKBSL9F6)](https://codecov.io/gh/y-temp4/rehype-title-figure)\n[![npm version](https://img.shields.io/npm/v/rehype-title-figure)](https://www.npmjs.com/package/rehype-title-figure)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n\n[Rehype](https://github.com/rehypejs/rehype) plugin that adds a caption using the title attribute of the img.\n\n## Install\n\n```bash\n$ yarn add rehype-title-figure\n```\n\nor\n\n```bash\n$ npm i rehype-title-figure\n```\n\n## Usage\n\n```ts\nimport unified from 'unified'\nimport remark from 'remark-parse'\nimport remark2rehype from 'remark-rehype'\nimport stringify from 'rehype-stringify'\n\nimport rehypeTitleFigure from 'rehype-title-figure'\n\nfunction compile(md: string) {\n  return unified()\n    .use(remark)\n    .use(remark2rehype)\n    .use(rehypeTitleFigure)\n    .use(stringify)\n    .processSync(md)\n    .toString()\n}\n\nconst output = compile(\n  '![alt text](https://placehold.jp/150x150.png \"caption text\")'\n)\nconsole.log(output)\n```\n\noutput:\n\n<!-- prettier-ignore -->\n```html\n<figure><img src=\"https://placehold.jp/150x150.png\" alt=\"alt text\" title=\"caption text\"><figcaption>caption text</figcaption></figure>\n```\n\n## LICENSE\n\nMIT © [y-temp4](https://y-temp4.com/)\n","readmeFilename":"README.md","homepage":"https://github.com/y-temp4/rehype-title-figure#readme"}