{"_id":"@akebifiky/remark-simple-plantuml","_rev":"3-49f56c27b9f0a5c2ab670e74e6bae1ab","name":"@akebifiky/remark-simple-plantuml","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@akebifiky/remark-simple-plantuml","version":"1.0.0","description":"`remark-simple-plantuml` is a simple plugin for [remarkjs](https://github.com/remarkjs/remark) that converts PlantUML code written in Markdown to `img` tags.","main":"./index.js","scripts":{"test":"mocha","coverage":"nyc npm run test","lint":"eslint --fix ./index.js"},"repository":{"type":"git","url":"git+https://github.com/akebifiky/remark-simple-plantuml.git"},"author":{"name":"akebifiky"},"license":"MIT","bugs":{"url":"https://github.com/akebifiky/remark-simple-plantuml/issues"},"homepage":"https://github.com/akebifiky/remark-simple-plantuml#readme","keywords":["remark","plantuml"],"devDependencies":{"chai":"^4.2.0","eslint":"^6.8.0","eslint-config-prettier":"^6.10.0","eslint-plugin-prettier":"^3.1.2","mocha":"^7.0.1","nyc":"^15.0.0","prettier":"^1.19.1","remark":"^11.0.2"},"dependencies":{"plantuml-encoder":"^1.4.0","unist-util-visit":"^2.0.2"},"publishConfig":{"access":"public"},"gitHead":"320a7060f753b38e9529f3da3928f52932772936","_id":"@akebifiky/remark-simple-plantuml@1.0.0","_nodeVersion":"12.15.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-tSQ3Jheb520qOE70LbEfGpmBZX8XAOk31RA5UXXtnDVyU2/Uu5cSbgwyy8vuLhZmYSu9lSxndwq5pUSgW+UbRQ==","shasum":"4afc7bb5e5d194b82b5fc52ebdf595cc1ba205e9","tarball":"https://registry.npmjs.org/@akebifiky/remark-simple-plantuml/-/remark-simple-plantuml-1.0.0.tgz","fileCount":13,"unpackedSize":9478,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeS4JGCRA9TVsSAnZWagAAcMMP/2M7CEOw2bPTGCdtTSHS\nzpLzOzQzXTbVg/HnNYubZJKaD3AA3ICcCuQqSGH9LcttcYJ/Hr153LrHWfvh\n0T4Pv5U9aN7ajSS/7TTu+KCmX+sFCbjwDuolplnJwSQovsxwyMYwlahEl4bY\n4s9KuyiQkLsnWu1MYTNGl2g2gXQEAPrT+Vwo2TpvXWpTAsX9GqdDfvYEM0g4\nfLrKgDQ7tN7XFqnI2gyKoReOf9dUUW/kYQ7mkKy2mRNUtScv/Da37bOmUIQd\nzlWZdV4QZohKr+HWd9w3qPDfSuV32ktGggFuUzHWMafcOEZdtPg0+DqNAMCK\nv8QXq7DmWpjzLSQB7uq6bZk/nNfopsp5tMYQgI//T6Ybh5Vdm0HVncCvP6Vn\nHpI1c+hy+dEeuD0yZH09m628PGG74ch92cBoH7z5I5LLrJeKaSSBIBGI/NR5\n0Qf7yDiM3dLgl9pjVaHXfIyhylru1inAW2yn2l40lHEQ4RPaHplGymoX/FrM\nE2hwWnj7TyH0r72MbUJEeKJLErq5PlvhYWZPSdzEjTJtwT6synCh2ZwyfxFH\nexHaVm5B+T66kZXgVvGFJU8MUX3rbZno6X8Xi2Nul56hD6UOBgPKFrDpuTC8\nYqopcQQAwh9p44IgCvXwY+TBIWnChzluvOo08P5lbv9vd7SrbMuzC+ZZ3c68\nJoaV\r\n=t4Yf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLLNpp7ktRAz7ENp0BvkvweBbT6pRUrvCWEh1FA97nawIgXvTfVv3qJr0VaJgxU6iRVbsQ+Omc+F26soptmsk29kk="}]},"maintainers":[{"name":"akebifiky","email":"akebi.yoshioka@akebifiky.net"}],"_npmUser":{"name":"akebifiky","email":"akebi.yoshioka@akebifiky.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-simple-plantuml_1.0.0_1582006853549_0.38783390205519996"},"_hasShrinkwrap":false},"1.0.1":{"name":"@akebifiky/remark-simple-plantuml","version":"1.0.1","description":"`remark-simple-plantuml` is a simple plugin for [remarkjs](https://github.com/remarkjs/remark) that converts PlantUML code written in Markdown to `img` tags.","main":"./index.js","scripts":{"test":"mocha","coverage":"nyc npm run test","lint":"eslint --fix ./index.js"},"repository":{"type":"git","url":"git+https://github.com/akebifiky/remark-simple-plantuml.git"},"author":{"name":"akebifiky"},"license":"MIT","bugs":{"url":"https://github.com/akebifiky/remark-simple-plantuml/issues"},"homepage":"https://github.com/akebifiky/remark-simple-plantuml#readme","keywords":["remark","plantuml"],"devDependencies":{"chai":"^4.2.0","eslint":"^6.8.0","eslint-config-prettier":"^6.10.0","eslint-plugin-prettier":"^3.1.2","mocha":"^7.0.1","nyc":"^15.0.0","prettier":"^1.19.1","remark":"^11.0.2"},"dependencies":{"plantuml-encoder":"^1.4.0","unist-util-visit":"^2.0.2"},"publishConfig":{"access":"public"},"gitHead":"c04e0f34083958b4aff065bc0f357993290b7775","_id":"@akebifiky/remark-simple-plantuml@1.0.1","_nodeVersion":"12.15.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-ypuWiR50dI9iD2/TXJRvQbfR9r9w/7S1BXdAxxe21ctSm9KoOWyeCaWJG7o3zsPhO4H3bh0Oghuud520Hr4eGg==","shasum":"caa4b582af63f57267cc2b773f1e85ae7a5b807d","tarball":"https://registry.npmjs.org/@akebifiky/remark-simple-plantuml/-/remark-simple-plantuml-1.0.1.tgz","fileCount":13,"unpackedSize":9587,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeS4XbCRA9TVsSAnZWagAAwZUQAJOrOF2ncE7+dBrgctXJ\n+BeusQRuzN37y/sTzxph5suqdM14R9EMUyx+wQRe9VM1coxQ3BaN8egiFvoR\nH+IFi65HY19ZG/+l/Ntn2pHFVFPiAfZLBt4eTMs4AKfhrtrlv2wDfT4Fr6Cq\nQTUFS2Ziuw1RQaQUEBFya48TqUnGIm3+Ok2UtdloNX7roobMWplTf3zlHTd1\nPj7YinW8k9glCnlcgX77F3TDmB13xT0iEFZsZoSbDJspyr2vx7UCb/lpAppV\nLNjKN/dD9dy2Thl3n/Fq2QuLGFPYKV4KDmt3VwFOneFzXJgOxZ1XbPYkCDQ+\nvVMKKh4dfktNN4MuDkMzezOqMroYZLEeFlAJX1Qbl6sMXxeusWQ5xdWv6qlw\nCpHpIILkgV1ZZULEDvUloeU/Q3+XceNjYaco5RtXVurIeMmuOsfHCe3nvDxU\nylsLndw9K/jlm/UsxprsiwXGxQL8EvljdBd5c+iRDK4OKpUpx7amOU2oHpih\n3VHb6s2/2lgPhoMmnCw9j0MG3Pheja1jXe1kMRYAg++OgSQzqCNYyEeHb1wp\n4YPI82fnZ/sm3fG+mprfm+l3Q6zinz9JAajXFQSyfsZpLsGppOSuODZK6yl4\nw58+8Ubye7B41tCs641gpZfypciuYuZiWqxTEK6DilpZyqkpBfP18mbcWcYB\nUMPc\r\n=4duZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG+QdDfPK6+4KUTgF4x2x74IoNEU9cfhQBxRe0vzUD5eAiAG1fmjjhFUpfRGw4SdpLJp4l6a1SL/PoNbFSIBLD7hNw=="}]},"maintainers":[{"name":"akebifiky","email":"akebi.yoshioka@akebifiky.net"}],"_npmUser":{"name":"akebifiky","email":"akebi.yoshioka@akebifiky.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-simple-plantuml_1.0.1_1582007771482_0.5599806127849205"},"_hasShrinkwrap":false},"1.0.2":{"name":"@akebifiky/remark-simple-plantuml","version":"1.0.2","description":"`remark-simple-plantuml` is a simple plugin for [remarkjs](https://github.com/remarkjs/remark) that converts PlantUML code written in Markdown to `img` tags.","main":"./index.js","scripts":{"test":"mocha","coverage":"nyc npm run test","lint":"eslint --fix ./index.js"},"repository":{"type":"git","url":"git+https://github.com/akebifiky/remark-simple-plantuml.git"},"author":{"name":"akebifiky"},"license":"MIT","bugs":{"url":"https://github.com/akebifiky/remark-simple-plantuml/issues"},"homepage":"https://github.com/akebifiky/remark-simple-plantuml#readme","keywords":["remark","plantuml"],"devDependencies":{"chai":"^4.2.0","eslint":"^6.8.0","eslint-config-prettier":"^6.10.0","eslint-plugin-prettier":"^3.1.2","mocha":"^7.0.1","nyc":"^15.0.0","prettier":"^1.19.1","remark":"^11.0.2"},"dependencies":{"plantuml-encoder":"^1.4.0","unist-util-visit":"^2.0.2"},"publishConfig":{"access":"public"},"gitHead":"98660c74e08a47d29daff20d98da2936df63395d","_id":"@akebifiky/remark-simple-plantuml@1.0.2","_nodeVersion":"12.20.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-y5rWgQvU+DMpLKx1KlXCsgUeqVooqQm1S3hePLF9iecZy6YhKRybznFdvAvoAoiV2GoGhObQDHnneAl93llIcg==","shasum":"c353e4be4e5338b0165f1d6060da4960c325bad5","tarball":"https://registry.npmjs.org/@akebifiky/remark-simple-plantuml/-/remark-simple-plantuml-1.0.2.tgz","fileCount":13,"unpackedSize":9282,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf15LmCRA9TVsSAnZWagAAOt4P/jyBK22zzxYfOvsHrrfZ\nuz1ej5OTtSLYOrpbTJDb5wrxRsYF9GXoMgsmOVqtjSxEDHjEy0DFUxl/VPIQ\nChNsgmZyU4rUrqupDy5dSh84yE49D1R6/xXmrLIre7BTqPV3DoGdDxyYzqn3\n2MKvIMMy3I3IxyKmzhe99x6RArjsBA9JXHBy+eW4ccimaE2F+8Zb0GuVu06F\n9viiugfrkFnS9hvFlrcHwFMk3aEsirhYTZU9Fr1pY7hcZljEFWI7ySg/I1NY\na5dprLCH13FztVUWU7yH1ZxAySQm2zbeUbGXbTB4nKzVDjP5OB7bh25qLuZ0\nk1eosV76DHBRgiJgJHkBZul6tIzvfayoGFkn61ov4cXch9N53fqcGPQX1HJU\n5aGKC9wY3zYRVE5Cu2u+uGDDIjgmxP1QcabTYopYYAoLZmkcnI0fW9oo9uaw\nwta8QwgHaO1lFqvN4SoYSFrAxRFdInk0rqD+gYp2c2wFOfLO3C6NCA1O4gDb\nr7qglXULJOyGsSFa1gdsjZ2IuSkOlt3wXy07Y6PJqq7u0X6So1Yl6q5j3x3c\nF80ZUxzGW/i668rzchhufZEDUWU0jJX/brC7+CnHDE4+wEDxI3D77TwOAsZt\nrk3RjsHj6KKFk5vpiiBR8N9Cab++bohSViq67ObTCvoZxfAp1Uk4wMgMtRkJ\nOUGE\r\n=5uFu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC5JPAeIN8EjuHsfEF17dWC0y7Lhpkwh0O320UwLPVDQAiEAuuK0D50/j0jYIMOrOvlVaFizQ4qe2ND5ejvEexUNSzI="}]},"_npmUser":{"name":"akebifiky","email":"akebi.yoshioka@akebifiky.net"},"directories":{},"maintainers":[{"name":"akebifiky","email":"akebi.yoshioka@akebifiky.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-simple-plantuml_1.0.2_1607963365415_0.21260093270246938"},"_hasShrinkwrap":false}},"time":{"created":"2020-02-18T06:20:53.521Z","1.0.0":"2020-02-18T06:20:53.692Z","modified":"2022-04-04T12:29:04.239Z","1.0.1":"2020-02-18T06:36:11.609Z","1.0.2":"2020-12-14T16:29:25.670Z"},"maintainers":[{"name":"akebifiky","email":"akebi.yoshioka@akebifiky.net"}],"description":"`remark-simple-plantuml` is a simple plugin for [remarkjs](https://github.com/remarkjs/remark) that converts PlantUML code written in Markdown to `img` tags.","homepage":"https://github.com/akebifiky/remark-simple-plantuml#readme","keywords":["remark","plantuml"],"repository":{"type":"git","url":"git+https://github.com/akebifiky/remark-simple-plantuml.git"},"author":{"name":"akebifiky"},"bugs":{"url":"https://github.com/akebifiky/remark-simple-plantuml/issues"},"license":"MIT","readme":"# Remark Simple PlantUML Plugin\n\n[![Build Status](https://travis-ci.org/akebifiky/remark-simple-plantuml.svg?branch=master)](https://travis-ci.org/akebifiky/remark-simple-plantuml) [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)\n\n`remark-simple-plantuml` is a simple plugin for [remarkjs](https://github.com/remarkjs/remark) that converts PlantUML code blocks to image nodes.\n\n## Installing\n\n```bash\nnpm install --save @akebifiky/remark-simple-plantuml\n```\n\n## Example\n\nYou can use this plugin like following\n\n### Markdown\n\n````markdown\n# Your markdown including PlantUML code block\n\n```plantuml Your title\nclass SimplePlantUMLPlugin {\n    + transform(syntaxTree: AST): AST\n}\n```\n````\n\n### JavaScript\n\n```javascript\nconst remark = require(\"remark\");\nconst simplePlantUML = require(\"@akebifiky/remark-simple-plantuml\");\nconst fs = require(\"fs\");\nconst path = require(\"path\");\n\nconst input = fs.readFileSync(path.resolve(__dirname, \"./your-markdown.md\")).toString();\nconst output = remark().use(simplePlantUML).processSync(input).toString();\n\nconsole.log(output);\n// will be \n// > # Your markdown including PlantUML code block\n// >\n// > ![Your title](https://www.plantuml.com/plantuml/png/Iyv9B2vM2CxCBSX93SX9p2i9zVK9o2bDpynJgEPI009jXPAYnBpYjFoYN8tYohoIn8gGejHKAmN7u11DCCbL2m00)\n```\n\n## Plugin Options\n\nYou can use specific PlantUML server by the option 'baseUrl'.\n(The default is `https://www.plantuml.com/plantuml/png`)\n\nIf you want to use SVG, you can configure like following.\n\n```javascript\nremark().use(simplePlantUML, { baseUrl: \"https://www.plantuml.com/plantuml/svg\" }).processSync(input);\n```\n\n## Integration\n\nYou can use this plugin in any frameworks support remarkjs.\n\nIf you want to use in the classic preset of [Docusaurus 2](https://v2.docusaurus.io/), like me, set configuration in your `docusaurus.config.js` like following.\n\n```javascript\nconst simplePlantUML = require(\"@akebifiky/remark-simple-plantuml\");\n\n// your configurations...\n\npresets: [\n    [\n      \"@docusaurus/preset-classic\",\n      {\n        docs: {\n          sidebarPath: require.resolve(\"./sidebars.js\"),\n          remarkPlugins: [simplePlantUML]\n        }\n      }\n    ]\n  ],\n\n//...\n```","readmeFilename":"README.md"}