{"_id":"@datatraccorporation/markdown-it-mermaid","_rev":"3-c0925def02b76c1f1f4a85e607aaf241","name":"@datatraccorporation/markdown-it-mermaid","dist-tags":{"latest":"0.5.0"},"versions":{"0.4.0-rc1":{"name":"@datatraccorporation/markdown-it-mermaid","version":"0.4.0-rc1","description":"Plugin to render mermaid diagrams in markdown-it","main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/DatatracCorporation/markdown-it-mermaid.git"},"keywords":["markdown-it-plugin","markdown-it","markdown","mermaid","flowchart","sequence"],"author":{"name":"Datatrac Corporation"},"license":"MIT","bugs":{"url":"https://github.com/DatatracCorporation/markdown-it-mermaid/issues"},"homepage":"https://github.com/DatatracCorporation/markdown-it-mermaid#readme","devDependencies":{"markdown-it":"^11.0.0"},"dependencies":{"mermaid":"^8.5.2"},"gitHead":"96777fff612c505d83238a00f4bc4362a51dedc6","_id":"@datatraccorporation/markdown-it-mermaid@0.4.0-rc1","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-oK1NAK4ufQdRz1ul5zwRfprZlglx5qHw4a+gw2djyguKHmDR3CZ7GQxd72FQsyTGnycbYiyhh1iqMcixDiSGfQ==","shasum":"49ab8f489e477722a1283883212124a491a554d0","tarball":"https://registry.npmjs.org/@datatraccorporation/markdown-it-mermaid/-/markdown-it-mermaid-0.4.0-rc1.tgz","fileCount":4,"unpackedSize":4918,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe5CCoCRA9TVsSAnZWagAAA48P/AxA3zCHDR0nxC7gMOVT\n3A+5xkNLJPBssE6qnhHSTbOoFcu2ISWoUAYa/bhmqncQAr6TFfcFXl/fXC1R\nd51rNU/Gya2G5+4Z84YmmpEy7PrDCTW+gBEPK/jnld3MMRE91wHJGL25AF1b\nfB6IimdEmhsoX54QqE0tx9hfVG180JdLsBkYOEpXXNAmtx7L0+4TVHRm1db8\ns04a9ITUm2MGWriWmTNNPCU0HGElpRmm9XBODRRoWJEcvVdI/UM/J5bvIZTy\n3wHCrjsGPViogLf81Md9tANRHLdNPKvcXuyepSzVtNXk+lk9qWJp3/jnYY8J\nullzrsDl9zKqvpsP7m94YQeW56gfpaM8g8ffjOvp/0Gi9ScSjx5L09kE2YlL\nOYw0dnqrxpdhSoOnN0PSLzuDv2j86Gm1eUPNzM4UkVzdEcA6fVdhkU9kh8t3\npz0wIUC5qx2emZs042Zy3XpAFAvO5RtPq81b3Tj4N30TrftlUC9b3W4FwacT\nz6pIyI9JA648bUM/nMnBJzv6ImqY9oUVnxcJfqx5tpavx5rBNs7ednVRIeKt\ndOvAnSWlDv5ENp3UK7ZFJALQ4Bl/smTi6BrFaqSILXH10sjGA14ZANF2BKfR\nqe1JAIuBfa/l++1dQV+EoEfmp68JANSEZXrMAkNTbqN7UFMTlIUvssoYG/rs\n0hOL\r\n=OhXe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtso4lQ7uxZocetCVem84FyPwHl4bNgQpEZFuS7sJX7AIgIuXwf3HN1MvFnBsvxWpciRS0MF7KCsx8wy8w3dgILKU="}]},"maintainers":[{"name":"jimgroks","email":"jimp@wegrok.net"}],"_npmUser":{"name":"jimgroks","email":"jimp@wegrok.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-it-mermaid_0.4.0-rc1_1592008872374_0.46370552329479175"},"_hasShrinkwrap":false},"0.4.0":{"name":"@datatraccorporation/markdown-it-mermaid","version":"0.4.0","description":"Plugin to render mermaid diagrams in markdown-it","main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/DatatracCorporation/markdown-it-mermaid.git"},"keywords":["markdown-it-plugin","markdown-it","markdown","mermaid","flowchart","sequence"],"author":{"name":"Datatrac Corporation"},"license":"MIT","bugs":{"url":"https://github.com/DatatracCorporation/markdown-it-mermaid/issues"},"homepage":"https://github.com/DatatracCorporation/markdown-it-mermaid#readme","devDependencies":{"markdown-it":"^11.0.0"},"dependencies":{"mermaid":"^8.5.2"},"gitHead":"0ed50747c503813a6b8d9040c46b2ce666b54bcd","_id":"@datatraccorporation/markdown-it-mermaid@0.4.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-VGmpg3VShdohSRsfGktVk5Eh4barMpuQpLaxSoMnct8gF60f2tinpl0NMI9zI69HVGLtrHhct3YioHs1rlkfUQ==","shasum":"8d37ec8b25f79687ce990dbc7a49e277aa0ebba9","tarball":"https://registry.npmjs.org/@datatraccorporation/markdown-it-mermaid/-/markdown-it-mermaid-0.4.0.tgz","fileCount":4,"unpackedSize":4914,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe5CR/CRA9TVsSAnZWagAAEEgQAI5iA0FcWY76Akz+JkH0\n4zpI0mqX1vxp+90YaGU/yuKtR4M89MQwNWCxqbFhvVUd6iF6wlbDYaxUkIQo\noBW4o7QOnhDD/yS8bSzb1kCLXgKMTy8C6/naxDMPa433zsKEH6n0DURgrTIB\nQ4ByCkz2+CLjiViEMavYS5hPFYM0k3RY/n9Qxe7Hp8YEPxsDh5XUoBV0Wnij\nTO3v0pXQvI619mH0w2+Rufq3x4l6t4Pt2/oJkZfK09XA4K2GBt9HcKzklwcO\n8w3XqNsKsWsNXznj2wZlFRvWiZ3hnn4fUnaO77YQs98OLs86C7CocSrCPRFI\nPWmzWG+uvp0/1eWsAVnNrqkMAxIid9nj8psSAEffHsHCl3UqffIPacDtZvfE\ncPp9b5umUdFIdSLz3Y9nRmsHE5aGB7pi6aAu66q9iSvcqNH9ztjwf1L9HRDq\nV8bUS08ZLYGUqAjNsmPmuXQJZ+JXsD54PMTXj6lCtHn/e4k2MWqlBFwFoqYU\nuAlE/urpXgAtt+GNUPWAJOa0QGzgLHon8jUF8QvS+97wKIPXZAdOp8xVVwcW\nIX38bd62gMgfDSbCWCVQTVjPcxNkKNaXVB+4vtlJCK5hwNHCkfDAxcoWh/dk\n/dkxLwLZ1XN+OiB9RtHVXlPEgAopKtfl6SEJlAaXUNpntFgPb4YunAXChPAd\n24b+\r\n=T5u0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHaNVtjfFZhVoMvoEUDSdCW0GbGGKNPOn3AgdidrgEq0AiEAvLYUDY3r+YbTpCIA5yT4sgXiJclogLtu37R2SRnhaVI="}]},"maintainers":[{"name":"jimgroks","email":"jimp@wegrok.net"}],"_npmUser":{"name":"jimgroks","email":"jimp@wegrok.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-it-mermaid_0.4.0_1592009855306_0.4144159310918287"},"_hasShrinkwrap":false},"0.5.0":{"name":"@datatraccorporation/markdown-it-mermaid","version":"0.5.0","description":"Plugin to render mermaid diagrams in markdown-it","main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/DatatracCorporation/markdown-it-mermaid.git"},"keywords":["markdown-it-plugin","markdown-it","markdown","mermaid","flowchart","sequence"],"author":{"name":"Datatrac Corporation"},"license":"MIT","bugs":{"url":"https://github.com/DatatracCorporation/markdown-it-mermaid/issues"},"homepage":"https://github.com/DatatracCorporation/markdown-it-mermaid#readme","devDependencies":{"markdown-it":"^11.0.0"},"dependencies":{"mermaid":"^8.5.2"},"gitHead":"29c41e3454f78870d12a552f98fbf84fe7e025aa","_id":"@datatraccorporation/markdown-it-mermaid@0.5.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"jimgroks","email":"jimp@wegrok.net"},"dist":{"integrity":"sha512-8ef5J7BlchwzW5YfMWLRUIZ4cCWWvXLJBueFPJBCXsrLpRmwhRHJVL75V+/gTBaGClwfs+fHXQmTjwfwPZbP4g==","shasum":"12b76f53853c7af79123bd6187f570c445b3856e","tarball":"https://registry.npmjs.org/@datatraccorporation/markdown-it-mermaid/-/markdown-it-mermaid-0.5.0.tgz","fileCount":6,"unpackedSize":8119,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+itiCRA9TVsSAnZWagAA44kQAIvIeBc5uvh8W+ysvci/\nhILJoe6Afe44SpW5jDl+FkXI1UCc82FLXZn5pxxUvX/l/fo2ApjKSjMCBZkB\nw1u3Wb1irh3TnJ7i5zg1kDiTciIG4eIUOzWhjq3knd0Nad3zTMPQrcWZ4eqT\nbfz5Fc8Eehf5xllMEwzUlz/rcZc4TVJfQ1M/lpO8ZQY739AOHa4Mjqm4pBq6\nRlW5Yy0efmtpdNfwquCDaCEyejaF8UXAdX2koPiXGbIh1ppc89cUZdC9jJUn\nefADLXFOHErqLzLgHz69HuAOa3tb3CJI0uPAcS9DlFyyy9rS2LHyN+y5Umby\nBtQ+TgZ+1RyQKUsJzwqjTImaVlvYCcgpyr9VXLovqrEHDNEgzK+7cTLMOhJ1\nYv0+ZbCGUBUHI+RSgnWtJqsBqUatZytOberLhVIZIZ2V5pzQ4vGyps/Idi50\nQBxJpXDeKS/XZLxjSzfT8WevpvITp1sG5DUr8PXtsOSgfYEllY98AI0RCRNO\n8SNAWI2TEPkIjL5HyrsGAp15XDszPe62noWo33J6omM1N6qyekqJn5d355f6\nzwwa+Ni5/9yikpQ+8mX7oMEX8q2NnAuPxp57TDFCmjZBYivthMPYQmpY/HHw\nYBUeKoCqDjUIaBCt12sANKR1YssJVAjciLbl4FvA2RfsLd9+Kj5OiiuyPie6\nywUU\r\n=749E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDk1KTdpWNth7VZ6DWsiemNQUD0nJNG8xiaFmzGTNfVpAiB0SNzBtSKjtOwAsDhWugqBbQPXDa9f92wRcVGexXzLPw=="}]},"maintainers":[{"name":"jimgroks","email":"jimp@wegrok.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-it-mermaid_0.5.0_1593453409349_0.9539375443607478"},"_hasShrinkwrap":false}},"time":{"created":"2020-06-13T00:41:12.160Z","0.4.0-rc1":"2020-06-13T00:41:12.488Z","modified":"2022-04-05T03:03:01.150Z","0.4.0":"2020-06-13T00:57:35.470Z","0.5.0":"2020-06-29T17:56:49.551Z"},"maintainers":[{"name":"jimgroks","email":"jimp@wegrok.net"}],"description":"Plugin to render mermaid diagrams in markdown-it","homepage":"https://github.com/DatatracCorporation/markdown-it-mermaid#readme","keywords":["markdown-it-plugin","markdown-it","markdown","mermaid","flowchart","sequence"],"repository":{"type":"git","url":"git+https://github.com/DatatracCorporation/markdown-it-mermaid.git"},"author":{"name":"Datatrac Corporation"},"bugs":{"url":"https://github.com/DatatracCorporation/markdown-it-mermaid/issues"},"license":"MIT","readme":"# markdown-it-mermaid\n\nMermaid plugin for markdown-it. (Forked from iradb2000/markdown-it-mermaid)\n\n- Update Mermaid to 8.5!\n- Support all mermaid diagrams\n- Add external title support\n- Use stable id for mermaid (good for static sites)\n\nThis version uses a different syntax to support mermaid.  The syntax\nuses the syntax highlighting notation by putting the word `mermaid`\ndirectly after the opening fence marker.\n\n## Installation\n\n```\nnpm install @DatatracCorporation/markdown-it-mermaid\n```\n\n## Usage\n\n```js\nimport markdownIt from \"markdown-it\";\nimport markdownItMermaid from \"@DatatracCorporation/markdown-it-mermaid\";\nconst mdi = markdownIt();\nmdi.use(markdownItMermaid);\nmdi.render(`~~~mermaid optional title goes here\n  graph TD\n    A[Christmas] -->|Get money| B(Go shopping)\n    B --> C{Let me think}\n    C -->|One| D[Laptop]\n    C -->|Two| E[iPhone]\n    C -->|Three| F[Car]\n~~~`);\n```\n\nThe word `mermaid` after the fence code block opening indicates that the\nrest of the fenced block should be passed to mermaid for processing.\nThis example used the `~~~` fence marker since the multi-line string\nin javascript is the same character,\nbut either `~~~` or ` ``` ` works.\n\n## Titles\n\nMermaid does not support titles on the diagrams today.  We have added an\nexternal title that you can use.  Include the title on the code fence\nline after the word `mermaid` and it will be rendered as a div inside\nthe parent div as a sibling to the svg image.  The title element has a\nclass of `mermaid-title` so you can style the title to fit your app.\n\nWe use:\n\n~~~css\n/* image container */\ndiv.mermaid {\n    width: fit-content;\n}\n\n/* image title */\n.mermaid-title {\n    width: fit-content;\n    margin: auto;\n    font-weight: 900;\n    font-size: 2em;\n    color: white;\n    padding-bottom: 0.5em;\n}\n\n/* image itself */\n.mermaid > svg {\n    margin: auto;\n    display: block;\n}\n~~~\n\n### Customize mermaid\n\n```js\nimport MarkdownIt from 'markdown-it';\nimport MarkdownItKatex from '@DatatracCorporation/markdown-it-mermaid';\n\nvar md = MarkdownIt({\n        html: false,\n        linkify: true,\n        typographer: true,\n        breaks: true,\n        xhtmlOut: false,\n    });\n\nmd.use(MarkdownItMermaid,{\n  startOnLoad: false,\n  securityLevel: true,\n  theme: \"default\",\n  flowchart:{\n    htmlLabels: false,\n    useMaxWidth: true,\n  }\n  ...or any options\n})\n```\n\n## Development\n\n### Test\n\nAt this time, there are no unit tests since mermaid has to run in a\nbrowser (uses document apis).  At some point in the future, we might go\nwith a headless browser.\n\n### Distribution\n\n```\nnpm version <newver> && npm publish\n```\n","readmeFilename":"README.md"}