{"library":"markdown-it-ins","title":"Markdown-it Insert Text Plugin","description":"markdown-it-ins is a plugin for the popular markdown-it parser that extends its functionality to include support for the HTML `<ins>` (inserted text) tag. It allows users to mark text for insertion using the `++text++` syntax, mirroring the behavior of CommonMark's emphasis rules. The current stable version is 4.0.0, published approximately two years ago, which implies a release cadence tied to upstream `markdown-it` updates or specific feature additions. A key differentiator is its focused purpose: providing `<ins>` tag support specifically for the markdown-it ecosystem, offering a straightforward way to add this semantic markup. While markdown-it itself is highly configurable and extensible, this plugin provides a ready-to-use solution for this specific text-level semantic element without requiring custom rule implementations.","language":"javascript","status":"active","last_verified":"Tue Apr 21","install":{"commands":["npm install markdown-it-ins"],"cli":null},"imports":["import markdownit from 'markdown-it';\nimport markdownitIns from 'markdown-it-ins';\n\nconst md = markdownit().use(markdownitIns);","const markdownit = require('markdown-it');\nconst markdownitIns = require('markdown-it-ins');\n\nconst md = markdownit().use(markdownitIns);","<!-- In HTML, after loading markdown-it-ins.js -->\n<script>\n  const md = window.markdownit();\n  md.use(window.markdownitIns);\n  console.log(md.render('++inserted++'));\n</script>"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import markdownit from 'markdown-it';\nimport markdownitIns from 'markdown-it-ins';\n\n// Initialize markdown-it with the ins plugin\nconst md = markdownit().use(markdownitIns);\n\n// Example usage with ++inserted++ syntax\nconst markdownText = `Hello, ++this text should be inserted++.\\n\\nThis is a paragraph with ++another inserted phrase++ and a regular sentence.`;\n\nconst htmlOutput = md.render(markdownText);\n\nconsole.log('Markdown Input:\\n', markdownText);\nconsole.log('\\nHTML Output:\\n', htmlOutput);\n\n// Expected output: <p>Hello, <ins>this text should be inserted</ins>.</p><p>This is a paragraph with <ins>another inserted phrase</ins> and a regular sentence.</p>","lang":"javascript","description":"Demonstrates how to import and register `markdown-it-ins` with `markdown-it` to process `++text++` markup into `<ins>` HTML tags.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}