{"library":"markdown-it-mark","title":"Markdown-It Mark Plugin","description":"The `markdown-it-mark` package is a plugin for the `markdown-it` markdown parser, designed to extend its functionality by adding support for the HTML `<mark>` tag. It enables users to highlight text within their Markdown documents using the `==text==` syntax, which is then rendered as `<mark>text</mark>`. The current stable version is 4.0.0, last published approximately two years ago, indicating a mature and stable project likely in maintenance mode rather than rapid feature development. This plugin is highly focused, providing a straightforward implementation for text highlighting that adheres to similar rules as CommonMark emphasis. Its key differentiator is its seamless integration with the `markdown-it` ecosystem, offering a lightweight solution for a common formatting need without introducing complex parsing behaviors.","language":"javascript","status":"maintenance","last_verified":"Tue Apr 21","install":{"commands":["npm install markdown-it-mark"],"cli":null},"imports":["import markdownit from 'markdown-it';\nimport markdownitMark from 'markdown-it-mark';\n\nconst md = markdownit().use(markdownitMark);","const markdownit = require('markdown-it');\nconst markdownitMark = require('markdown-it-mark');\n\nconst md = markdownit().use(markdownitMark);","// When loaded directly in a browser via <script> tag:\nconst md = window.markdownit().use(window.markdownitMark);"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import markdownit from 'markdown-it';\nimport markdownitMark from 'markdown-it-mark';\n\n// Initialize markdown-it with the mark plugin\nconst md = markdownit();\nmd.use(markdownitMark);\n\n// Markdown input with mark syntax\nconst markdownInput = 'This is ==marked== text and also ==important== content.';\n\n// Render to HTML\nconst htmlOutput = md.render(markdownInput);\n\nconsole.log(htmlOutput);\n// Expected output: <p>This is <mark>marked</mark> text and also <mark>important</mark> content.</p>","lang":"javascript","description":"This quickstart demonstrates how to initialize `markdown-it` and register `markdown-it-mark` to parse and render `==marked==` syntax into `<mark>` HTML tags.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}