{"library":"markdown-it-abbr","title":"Markdown-it Abbreviation Plugin","description":"This package provides an abbreviation (`<abbr>`) tag plugin for the `markdown-it` markdown parser. It allows users to define abbreviations in their markdown content using a syntax similar to PHP Markdown Extra (e.g., `*[HTML]: Hyper Text Markup Language`), which are then rendered into proper HTML `<abbr>` tags with `title` attributes. The current stable version is 2.0.0. As a specific-purpose plugin for `markdown-it`, its release cadence is typically tied to `markdown-it`'s own updates or specific feature additions/bug fixes for the abbreviation parsing itself. Its key differentiator is its seamless integration with the `markdown-it` ecosystem, offering a standardized way to extend markdown parsing functionality without manual HTML manipulation. It does not support multi-line abbreviation definitions. The package is actively maintained, ensuring compatibility with newer `markdown-it` versions and addressing reported issues.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install markdown-it-abbr"],"cli":null},"imports":["import markdownitAbbr from 'markdown-it-abbr';","const markdownitAbbr = require('markdown-it-abbr');","window.markdownitAbbr"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import MarkdownIt from 'markdown-it';\nimport markdownitAbbr from 'markdown-it-abbr';\n\nconst md = new MarkdownIt().use(markdownitAbbr);\n\nconst markdownContent = `\n*[HTML]: Hyper Text Markup Language\n*[W3C]:  World Wide Web Consortium\nThe HTML specification\nis maintained by the W3C.\n`;\n\nconst htmlOutput = md.render(markdownContent);\n\nconsole.log(htmlOutput);\n/*\n<p>The <abbr title=\"Hyper Text Markup Language\">HTML</abbr> specification\nis maintained by the <abbr title=\"World Wide Web Consortium\">W3C</abbr>.</p>\n*/","lang":"typescript","description":"Demonstrates initializing a markdown-it instance, registering the abbreviation plugin, and rendering markdown content that includes abbreviation definitions to HTML.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}