{"id":22619558,"url":"https://github.com/markdown-it/markdown-it-sub","last_synced_at":"2025-04-07T05:16:14.411Z","repository":{"id":25253209,"uuid":"28678185","full_name":"markdown-it/markdown-it-sub","owner":"markdown-it","description":"Subscript (\u003csub\u003e) tag plugin for markdown-it markdown parser","archived":false,"fork":false,"pushed_at":"2023-12-05T13:29:52.000Z","size":15,"stargazers_count":28,"open_issues_count":0,"forks_count":17,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-04T09:42:46.046Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://markdown-it.github.io/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markdown-it.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-01-01T00:58:13.000Z","updated_at":"2024-06-20T12:08:38.000Z","dependencies_parsed_at":"2023-12-16T15:03:45.733Z","dependency_job_id":"d2e5dce2-3e92-415c-aebe-60a7d9305a32","html_url":"https://github.com/markdown-it/markdown-it-sub","commit_stats":{"total_commits":11,"total_committers":3,"mean_commits":"3.6666666666666665","dds":0.4545454545454546,"last_synced_commit":"422e93885b3c611234d602aa795f3d75a62cc93e"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markdown-it%2Fmarkdown-it-sub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markdown-it%2Fmarkdown-it-sub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markdown-it%2Fmarkdown-it-sub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markdown-it%2Fmarkdown-it-sub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markdown-it","download_url":"https://codeload.github.com/markdown-it/markdown-it-sub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247418776,"owners_count":20935902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-08T22:06:07.272Z","updated_at":"2025-04-07T05:16:14.321Z","avatar_url":"https://github.com/markdown-it.png","language":"JavaScript","readme":"# markdown-it-sub\n\n[![CI](https://github.com/markdown-it/markdown-it-sub/actions/workflows/ci.yml/badge.svg)](https://github.com/markdown-it/markdown-it-sub/actions/workflows/ci.yml)\n[![NPM version](https://img.shields.io/npm/v/markdown-it-sub.svg?style=flat)](https://www.npmjs.org/package/markdown-it-sub)\n[![Coverage Status](https://img.shields.io/coveralls/markdown-it/markdown-it-sub/master.svg?style=flat)](https://coveralls.io/r/markdown-it/markdown-it-sub?branch=master)\n\n\u003e Subscript (`\u003csub\u003e`) tag plugin for [markdown-it](https://github.com/markdown-it/markdown-it) markdown parser.\n\n__v1.+ requires `markdown-it` v4.+, see changelog.__\n\n`H~2~0` =\u003e `H\u003csub\u003e2\u003c/sub\u003eO`\n\nMarkup is based on [pandoc](http://johnmacfarlane.net/pandoc/README.html#superscripts-and-subscripts) definition. But nested markup is currently not supported.\n\n\n## Install\n\nnode.js, browser:\n\n```bash\nnpm install markdown-it-sub --save\nbower install markdown-it-sub --save\n```\n\n## Use\n\n```js\nvar md = require('markdown-it')()\n            .use(require('markdown-it-sub'));\n\nmd.render('H~2~0') // =\u003e '\u003cp\u003eH\u003csub\u003e2\u003c/sub\u003eO\u003c/p\u003e'\n```\n\n_Differences in browser._ If you load script directly into the page, without\npackage system, module will add itself globally as `window.markdownitSub`.\n\n\n## License\n\n[MIT](https://github.com/markdown-it/markdown-it-sub/blob/master/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkdown-it%2Fmarkdown-it-sub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkdown-it%2Fmarkdown-it-sub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkdown-it%2Fmarkdown-it-sub/lists"}