{"library":"markdown-it-sup","title":"Markdown-it Superscript Plugin","description":"This package provides a dedicated plugin for the popular `markdown-it` markdown parser, specifically designed to render superscript text. It utilizes a Pandoc-like `^...^` syntax; for instance, the input `29^th^` will be processed into `29<sup>th</sup>`. The current stable version is 2.0.0. As a single-feature plugin for a stable core library like `markdown-it`, its release cadence is generally infrequent, primarily driven by maintenance needs, compatibility updates with `markdown-it` itself, or bug fixes. A key characteristic is its straightforward integration with `markdown-it` and its adherence to a commonly understood markup convention for superscripts, making it easy to adopt for existing `markdown-it` projects. Notably, the plugin currently does not support nested superscript markup.","language":"javascript","status":"maintenance","last_verified":"Sun Apr 19","install":{"commands":["npm install markdown-it-sup"],"cli":null},"imports":["import markdownitSup from 'markdown-it-sup';","const markdownitSup = require('markdown-it-sup');","// No direct import needed if loaded via script tag in browser"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import MarkdownIt from 'markdown-it';\nimport markdownitSup from 'markdown-it-sup';\n\nfunction renderSuperscript(markdownContent: string): string {\n  const md = new MarkdownIt()\n             .use(markdownitSup);\n\n  return md.render(markdownContent);\n}\n\nconst example = 'The 29^th^ of February is a leap day. H^2^O is water.';\nconsole.log(renderSuperscript(example));\n// Expected output: <p>The 29<sup>th</sup> of February is a leap day. H<sup>2</sup>O is water.</p>\n","lang":"typescript","description":"This quickstart demonstrates how to initialize `markdown-it` and apply the `markdown-it-sup` plugin to process and render superscript markdown syntax.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}