{"library":"markdown-it","title":"Markdown-it Parser","description":"Markdown-it is a high-performance and highly extensible Markdown parser, currently at version 14.1.1. It strictly follows the CommonMark specification while also offering several useful syntax extensions like URL autolinking, smart typography (typographer), and HTML tag support. Known for its speed and configurability, users can easily add, modify, or replace parsing rules and extend functionality via a rich ecosystem of community-developed plugins available on npm. It prioritizes safety by design and is suitable for both Node.js and browser environments. The project maintains an active development pace with frequent updates, ensuring ongoing compatibility and feature enhancements.","language":"javascript","status":"active","last_verified":"Tue Apr 21","install":{"commands":["npm install markdown-it"],"cli":null},"imports":["import markdownit from 'markdown-it'","const markdownit = require('markdown-it')","import type MarkdownIt from 'markdown-it'","const md = window.markdownit()"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import markdownit from 'markdown-it';\n\n// Initialize markdown-it with specific options\nconst md = markdownit({\n  html: true,        // Enable HTML tags in source\n  linkify: true,     // Autoconvert URL-like text to links\n  typographer: true  // Enable smart quotes and other typographic replacements\n});\n\n// Example 1: Basic rendering\nconst markdownText1 = '# Hello, markdown-it!\\n\\nThis is a *simple* paragraph with an [example link](https://example.com).';\nconst htmlResult1 = md.render(markdownText1);\nconsole.log('Basic Render:\\n', htmlResult1);\n\n// Example 2: Render inline content (without paragraph wrap)\nconst markdownText2 = '__markdown-it__ rulezz!';\nconst htmlResult2 = md.renderInline(markdownText2);\nconsole.log('\\nInline Render:\\n', htmlResult2);\n\n// Example 3: Demonstrating typographer and linkify\nconst markdownText3 = 'Check out google.com or write \"hello\" here.';\nconst htmlResult3 = md.render(markdownText3);\nconsole.log('\\nTypographer & Linkify:\\n', htmlResult3);","lang":"typescript","description":"Demonstrates basic markdown-it initialization with common options, renders a block of Markdown text, and shows inline rendering for single-line content.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}