{"repo":"croct-tech/md-lite-js","free":true,"listed":false,"github":"https://github.com/croct-tech/md-lite-js","clone":"git clone https://github.com/croct-tech/md-lite-js.git","description":"📝 A simple and easy-to-use Markdown parser and render for basic formatting. Only 1.5 KB gzipped!","language":"TypeScript","stars":43,"topics":["fast","js","markdown","typescript","zero-dependency","browser","client-side","cms","formatting","lightweight"],"license":"MIT","category":"productivity","readme_excerpt":"MD Lite A minimalist Markdown parser and render for basic formatting. 📦 Releases · 🐞 Report Bug · ✨ Request Feature Introduction This library provides a fast and simple Markdown parser with zero dependencies. Perfect for those who need to handle basic Markdown syntax without the overhead of a full-featured Markdown parser. Features - 🪶 Lightweight: Zero dependencies, about 1.5 KB gzipped. - 🌐 Cross-environment: Works in Node.js and browsers. - ✍️ Minimalist: Supports only italic , bold , strikethrough , inline code , links, 🖼️ images, and ¶ paragraphs. - 🛠 Flexible: Render whatever you want, from HTML to JSX. Who is this library for? If you're working on a project that requires rendering Markdown for short texts like titles, subtitles, and descriptions, but you don't need a full-featured Markdown parser, this library is for you. Installation We recommend using NPM to install the package: Alternatively, you can use Yarn: Basic usage The following sections show how to parse and render Markdown using this library. Parsing Markdown To parse a Markdown string into an AST, use the parse function: The parse function returns a tree-like structure called an Abstract Syntax Tree (AST). You can find the full AST definition here. Rendering Markdown To render an AST into whatever you want, use the render function. It accepts as input either a Markdown string or an AST: Here is an example of how to render the Markdown string above into JSX: Handling unsupported features In some cases","default_branch":null,"files":null,"tree":[],"storefront":"/r/croct-tech","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/croct-tech/md-lite-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}