{"library":"showdown","title":"Showdown Markdown to HTML Converter","description":"Showdown is an open-source JavaScript library designed for converting Markdown formatted text into HTML. It is a robust, cross-platform solution, capable of operating both client-side in web browsers and server-side within Node.js environments. The current stable version is 2.1.0, with releases occurring periodically to address bugs, update dependencies, and introduce features; for instance, version 2.0.0 primarily focused on maintenance, updating its `yargs` dependency and Node.js support. Key differentiators include its foundational basis on John Gruber's original Markdown specifications, long-standing stability, and an experimental HTML to Markdown converter introduced in version 1.9.0, providing versatile bidirectional conversion capabilities. Unlike some newer, more opinionated Markdown parsers, Showdown offers extensive configuration options to control the conversion process, allowing users to enable or disable various Markdown features.","language":"javascript","status":"active","last_verified":"Tue Apr 21","install":{"commands":["npm install showdown"],"cli":null},"imports":["import { Converter } from 'showdown';","const showdown = require('showdown');","const converter = new showdown.Converter();"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const showdown = require('showdown');\n\nconst converter = new showdown.Converter({\n    emoji: true,\n    strikethrough: true,\n    tables: true,\n    tasklists: true,\n    openLinksInNewWindow: true\n});\n\nconst markdownText = `\n# Hello, Showdown!\n\nThis is a **Markdown** example with some common features.\n\n- List item 1\n- List item 2\n  - Sub-item\n\n~~Strikethrough text~~ and an :emoji:! 🎉\n\n| Header 1 | Header 2 |\n|---|---|\n| Cell 1 | Cell 2 |\n\n- [x] Task 1 (completed)\n- [ ] Task 2 (pending)\n\n[Visit ShowdownJS](https://showdownjs.com/)\n`;\n\nconst html = converter.makeHtml(markdownText);\n\nconsole.log(html);\n// Expected output: An HTML string representing the converted Markdown.\n","lang":"javascript","description":"This quickstart demonstrates how to initialize the Showdown converter with several common options (emoji, strikethrough, tables, tasklists) and convert a Markdown string into an HTML string using CommonJS syntax.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}