{"_id":"markdown-it-footnote","_rev":"2766650","name":"markdown-it-footnote","description":"Footnotes for markdown-it markdown parser.","dist-tags":{"latest":"3.0.3"},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"time":{"modified":"2022-04-13T05:44:28.000Z","created":"2015-01-04T13:43:48.462Z","3.0.3":"2021-05-20T17:15:37.651Z","3.0.2":"2019-07-09T03:34:46.890Z","3.0.1":"2016-08-05T13:23:48.463Z","3.0.0":"2016-06-27T23:33:41.573Z","2.0.0":"2015-10-05T11:17:59.288Z","1.0.0":"2015-03-12T09:48:51.465Z","0.1.0":"2015-01-04T13:43:48.462Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/markdown-it/markdown-it-footnote.git"},"versions":{"3.0.3":{"name":"markdown-it-footnote","version":"3.0.3","description":"Footnotes for markdown-it markdown parser.","keywords":["markdown-it-plugin","markdown-it","markdown","footnotes"],"repository":{"type":"git","url":"git+https://github.com/markdown-it/markdown-it-footnote.git"},"license":"MIT","scripts":{"test":"make test"},"devDependencies":{"browserify":"^16.2.3","coveralls":"^3.0.2","eslint":"^5.9.0","istanbul":"^0.4.5","markdown-it":"github:markdown-it/markdown-it","markdown-it-testgen":"~0.1.0","mocha":"^5.2.0","terser":"^3.17.0"},"gitHead":"337dcc79dfe8b2cb98c32000d8b24691de66105b","bugs":{"url":"https://github.com/markdown-it/markdown-it-footnote/issues"},"homepage":"https://github.com/markdown-it/markdown-it-footnote#readme","_id":"markdown-it-footnote@3.0.3","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"shasum":"e0e4c0d67390a4c5f0c75f73be605c7c190ca4d8","size":7736,"noattachment":false,"key":"/markdown-it-footnote/-/markdown-it-footnote-3.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/markdown-it-footnote/download/markdown-it-footnote-3.0.3.tgz"},"_npmUser":{"name":"vitaly","email":"vitaly@rcdesign.ru"},"directories":{},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-it-footnote_3.0.3_1621530937490_0.3873218033962562"},"_hasShrinkwrap":false,"publish_time":1621530937651,"_cnpm_publish_time":1621530937651,"_cnpmcore_publish_time":"2021-12-16T16:32:17.382Z"},"3.0.2":{"name":"markdown-it-footnote","version":"3.0.2","description":"Footnotes for markdown-it markdown parser.","keywords":["markdown-it-plugin","markdown-it","markdown","footnotes"],"repository":{"type":"git","url":"git+https://github.com/markdown-it/markdown-it-footnote.git"},"license":"MIT","scripts":{"test":"make test"},"devDependencies":{"browserify":"^16.2.3","coveralls":"^3.0.2","eslint":"^5.9.0","istanbul":"^0.4.5","markdown-it":"github:markdown-it/markdown-it","markdown-it-testgen":"~0.1.0","mocha":"^5.2.0","terser":"^3.17.0"},"gitHead":"cab6665ba39c6eb517cbbae3baeb549004bf740c","bugs":{"url":"https://github.com/markdown-it/markdown-it-footnote/issues"},"homepage":"https://github.com/markdown-it/markdown-it-footnote#readme","_id":"markdown-it-footnote@3.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"vitaly","email":"vitaly@rcdesign.ru"},"dist":{"shasum":"1575ee7a093648d4e096aa33386b058d92ac8bc1","size":7699,"noattachment":false,"key":"/markdown-it-footnote/-/markdown-it-footnote-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/markdown-it-footnote/download/markdown-it-footnote-3.0.2.tgz"},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-it-footnote_3.0.2_1562643286781_0.055791750688368724"},"_hasShrinkwrap":false,"publish_time":1562643286890,"_cnpm_publish_time":1562643286890,"_cnpmcore_publish_time":"2021-12-16T16:32:17.566Z"},"3.0.1":{"name":"markdown-it-footnote","version":"3.0.1","description":"Footnotes for markdown-it markdown parser.","keywords":["markdown-it-plugin","markdown-it","markdown","footnotes"],"repository":{"type":"git","url":"git+https://github.com/markdown-it/markdown-it-footnote.git"},"license":"MIT","scripts":{"test":"make test"},"devDependencies":{"browserify":"*","coveralls":"^2.11.2","eslint":"~2.13.1","istanbul":"*","lodash":"*","markdown-it":"github:markdown-it/markdown-it","markdown-it-testgen":"~0.1.0","mocha":"*","request":"*","uglify-js":"*"},"gitHead":"4f0f468ac2a64c00c3b709b0d49f57d607c93c2e","bugs":{"url":"https://github.com/markdown-it/markdown-it-footnote/issues"},"homepage":"https://github.com/markdown-it/markdown-it-footnote#readme","_id":"markdown-it-footnote@3.0.1","_shasum":"7f3730747cacc86e2fe0bf8a17a710f34791517a","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"vitaly","email":"vitaly@rcdesign.ru"},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"dist":{"shasum":"7f3730747cacc86e2fe0bf8a17a710f34791517a","size":7394,"noattachment":false,"key":"/markdown-it-footnote/-/markdown-it-footnote-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/markdown-it-footnote/download/markdown-it-footnote-3.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/markdown-it-footnote-3.0.1.tgz_1470403426636_0.5941274804063141"},"directories":{},"publish_time":1470403428463,"_hasShrinkwrap":false,"_cnpm_publish_time":1470403428463,"_cnpmcore_publish_time":"2021-12-16T16:32:17.762Z"},"3.0.0":{"name":"markdown-it-footnote","version":"3.0.0","description":"Footnotes for markdown-it markdown parser.","keywords":["markdown-it-plugin","markdown-it","markdown","footnotes"],"repository":{"type":"git","url":"git+https://github.com/markdown-it/markdown-it-footnote.git"},"license":"MIT","scripts":{"test":"make test"},"devDependencies":{"browserify":"*","coveralls":"^2.11.2","eslint":"~2.13.1","istanbul":"*","lodash":"*","markdown-it":"github:markdown-it/markdown-it","markdown-it-testgen":"~0.1.0","mocha":"*","request":"*","uglify-js":"*"},"gitHead":"c5d11135e49aeb455b21efccd004f5480d9d0e15","bugs":{"url":"https://github.com/markdown-it/markdown-it-footnote/issues"},"homepage":"https://github.com/markdown-it/markdown-it-footnote#readme","_id":"markdown-it-footnote@3.0.0","_shasum":"5199d8747d3319077671862708e7bb9b801b0320","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"vitaly","email":"vitaly@rcdesign.ru"},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"dist":{"shasum":"5199d8747d3319077671862708e7bb9b801b0320","size":7324,"noattachment":false,"key":"/markdown-it-footnote/-/markdown-it-footnote-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/markdown-it-footnote/download/markdown-it-footnote-3.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/markdown-it-footnote-3.0.0.tgz_1467070420557_0.5478041882161051"},"directories":{},"publish_time":1467070421573,"_hasShrinkwrap":false,"_cnpm_publish_time":1467070421573,"_cnpmcore_publish_time":"2021-12-16T16:32:17.988Z"},"2.0.0":{"name":"markdown-it-footnote","version":"2.0.0","description":"Footnotes for markdown-it markdown parser.","keywords":["markdown-it-plugin","markdown-it","markdown","footnotes"],"homepage":"https://github.com/markdown-it/markdown-it-footnote","repository":{"type":"git","url":"git://github.com/markdown-it/markdown-it-footnote.git"},"bugs":{"url":"https://github.com/markdown-it/markdown-it-footnote/issues"},"license":"MIT","main":"index.js","scripts":{"test":"make test"},"devDependencies":{"browserify":"*","coveralls":"^2.11.2","eslint":"0.10.2","eslint-plugin-nodeca":"^1.0.0","istanbul":"*","lodash":"*","markdown-it":"github:markdown-it/markdown-it","markdown-it-testgen":"~0.1.0","mocha":"*","request":"*","uglify-js":"*"},"gitHead":"8647fddb6cc6c5aa9879dfcac65a3bb5c392115c","_id":"markdown-it-footnote@2.0.0","_shasum":"14e9c4f68ff12cf354fa365ae378276e8104ca94","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"vitaly","email":"vitaly@rcdesign.ru"},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"dist":{"shasum":"14e9c4f68ff12cf354fa365ae378276e8104ca94","size":6952,"noattachment":false,"key":"/markdown-it-footnote/-/markdown-it-footnote-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/markdown-it-footnote/download/markdown-it-footnote-2.0.0.tgz"},"directories":{},"publish_time":1444043879288,"_hasShrinkwrap":false,"_cnpm_publish_time":1444043879288,"_cnpmcore_publish_time":"2021-12-16T16:32:18.191Z"},"1.0.0":{"name":"markdown-it-footnote","version":"1.0.0","description":"Footnotes for markdown-it markdown parser.","keywords":["markdown-it-plugin","markdown-it","markdown","footnotes"],"homepage":"https://github.com/markdown-it/markdown-it-footnote","repository":{"type":"git","url":"git://github.com/markdown-it/markdown-it-footnote.git"},"bugs":{"url":"https://github.com/markdown-it/markdown-it-footnote/issues"},"license":"MIT","main":"index.js","scripts":{"test":"make test"},"devDependencies":{"browserify":"*","coveralls":"^2.11.2","eslint":"0.10.2","eslint-plugin-nodeca":"^1.0.0","istanbul":"*","lodash":"*","markdown-it":"^4.0.0","markdown-it-testgen":"~0.1.0","mocha":"*","request":"*","uglify-js":"*"},"gitHead":"680dcddb4f8cc96c86d54295cb7cff9350fef885","_id":"markdown-it-footnote@1.0.0","_shasum":"4d3647904bb6f8b62c6da47459e8e0a3f4636abf","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"vitaly","email":"vitaly@rcdesign.ru"},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"dist":{"shasum":"4d3647904bb6f8b62c6da47459e8e0a3f4636abf","size":6687,"noattachment":false,"key":"/markdown-it-footnote/-/markdown-it-footnote-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/markdown-it-footnote/download/markdown-it-footnote-1.0.0.tgz"},"directories":{},"publish_time":1426153731465,"_hasShrinkwrap":false,"_cnpm_publish_time":1426153731465,"_cnpmcore_publish_time":"2021-12-16T16:32:18.445Z"},"0.1.0":{"name":"markdown-it-footnote","version":"0.1.0","description":"Footnotes for markdown-it markdown parser.","keywords":["markdown-it-plugin","markdown-it","markdown","footnotes"],"homepage":"https://github.com/markdown-it/markdown-it-footnote","repository":{"type":"git","url":"git://github.com/markdown-it/markdown-it-footnote.git"},"bugs":{"url":"https://github.com/markdown-it/markdown-it-footnote/issues"},"license":"MIT","main":"index.js","scripts":{"test":"make test"},"devDependencies":{"browserify":"*","coveralls":"^2.11.2","eslint":"0.10.2","eslint-plugin-nodeca":"^1.0.0","istanbul":"*","lodash":"*","markdown-it":"~3.0.0","markdown-it-testgen":"~0.1.0","mocha":"*","request":"*","uglify-js":"*"},"gitHead":"db3d6ee2792efd7d2bc51fa6e1c4989796675a41","_id":"markdown-it-footnote@0.1.0","_shasum":"903dc7a18fc0d2036706ee94955a5d2fedc58205","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"vitaly","email":"vitaly@rcdesign.ru"},"maintainers":[{"name":"vitaly","email":"vitaly@rcdesign.ru"}],"dist":{"shasum":"903dc7a18fc0d2036706ee94955a5d2fedc58205","size":6432,"noattachment":false,"key":"/markdown-it-footnote/-/markdown-it-footnote-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/markdown-it-footnote/download/markdown-it-footnote-0.1.0.tgz"},"directories":{},"publish_time":1420379028462,"_hasShrinkwrap":false,"_cnpm_publish_time":1420379028462,"_cnpmcore_publish_time":"2021-12-16T16:32:18.656Z"}},"readme":"# markdown-it-footnote\n\n[![Build Status](https://img.shields.io/travis/markdown-it/markdown-it-footnote/master.svg?style=flat)](https://travis-ci.org/markdown-it/markdown-it-footnote)\n[![NPM version](https://img.shields.io/npm/v/markdown-it-footnote.svg?style=flat)](https://www.npmjs.org/package/markdown-it-footnote)\n[![Coverage Status](https://img.shields.io/coveralls/markdown-it/markdown-it-footnote/master.svg?style=flat)](https://coveralls.io/r/markdown-it/markdown-it-footnote?branch=master)\n\n> Footnotes plugin for [markdown-it](https://github.com/markdown-it/markdown-it) markdown parser.\n\n__v2.+ requires `markdown-it` v5.+, see changelog.__\n\nMarkup is based on [pandoc](http://johnmacfarlane.net/pandoc/README.html#footnotes) definition.\n\n__Normal footnote__:\n\n```\nHere is a footnote reference,[^1] and another.[^longnote]\n\n[^1]: Here is the footnote.\n\n[^longnote]: Here's one with multiple blocks.\n\n    Subsequent paragraphs are indented to show that they\nbelong to the previous footnote.\n```\n\nhtml:\n\n```html\n<p>Here is a footnote reference,<sup class=\"footnote-ref\"><a href=\"#fn1\" id=\"fnref1\">[1]</a></sup> and another.<sup class=\"footnote-ref\"><a href=\"#fn2\" id=\"fnref2\">[2]</a></sup></p>\n<p>This paragraph won’t be part of the note, because it\nisn’t indented.</p>\n<hr class=\"footnotes-sep\">\n<section class=\"footnotes\">\n<ol class=\"footnotes-list\">\n<li id=\"fn1\"  class=\"footnote-item\"><p>Here is the footnote. <a href=\"#fnref1\" class=\"footnote-backref\">↩</a></p>\n</li>\n<li id=\"fn2\"  class=\"footnote-item\"><p>Here’s one with multiple blocks.</p>\n<p>Subsequent paragraphs are indented to show that they\nbelong to the previous footnote. <a href=\"#fnref2\" class=\"footnote-backref\">↩</a></p>\n</li>\n</ol>\n</section>\n```\n\n__Inline footnote__:\n\n```\nHere is an inline note.^[Inlines notes are easier to write, since\nyou don't have to pick an identifier and move down to type the\nnote.]\n```\n\nhtml:\n\n```html\n<p>Here is an inline note.<sup class=\"footnote-ref\"><a href=\"#fn1\" id=\"fnref1\">[1]</a></sup></p>\n<hr class=\"footnotes-sep\">\n<section class=\"footnotes\">\n<ol class=\"footnotes-list\">\n<li id=\"fn1\"  class=\"footnote-item\"><p>Inlines notes are easier to write, since\nyou don’t have to pick an identifier and move down to type the\nnote. <a href=\"#fnref1\" class=\"footnote-backref\">↩</a></p>\n</li>\n</ol>\n</section>\n```\n\n\n## Install\n\nnode.js, browser:\n\n```bash\nnpm install markdown-it-footnote --save\nbower install markdown-it-footnote --save\n```\n\n## Use\n\n```js\nvar md = require('markdown-it')()\n            .use(require('markdown-it-footnote'));\n\nmd.render(/*...*/) // See examples above\n```\n\n_Differences in browser._ If you load script directly into the page, without\npackage system, module will add itself globally as `window.markdownitFootnote`.\n\n\n### Customize\n\nIf you want to customize the output, you'll need to replace the template\nfunctions. To see which templates exist and their default implementations,\nlook in [`index.js`](index.js). The API of these template functions is out of\nscope for this plugin's documentation; you can read more about it [in the\nmarkdown-it\ndocumentation](https://github.com/markdown-it/markdown-it/blob/master/docs/architecture.md#renderer).\n\nTo demonstrate with an example, here is how you might replace the `<hr>` that\nthis plugin emits by default with an `<h4>` emitted by your own template\nfunction override:\n\n```js\nconst md = require('markdown-it')().use(require('markdown-it-footnote'));\n\nmd.renderer.rules.footnote_block_open = () => (\n  '<h4 class=\"mt-3\">Footnotes</h4>\\n' +\n  '<section class=\"footnotes\">\\n' +\n  '<ol class=\"footnotes-list\">\\n'\n);\n```\n\n\n## License\n\n[MIT](https://github.com/markdown-it/markdown-it-footnote/blob/master/LICENSE)\n","_attachments":{},"homepage":"https://github.com/markdown-it/markdown-it-footnote#readme","bugs":{"url":"https://github.com/markdown-it/markdown-it-footnote/issues"},"license":"MIT"}