{"repo":"lin-stephanie/remark-directive-sugar","free":true,"listed":false,"github":"https://github.com/lin-stephanie/remark-directive-sugar","clone":"git clone https://github.com/lin-stephanie/remark-directive-sugar.git","description":"Provide predefined directives for customizable badges, links, video embeds, and more.","language":"TypeScript","stars":12,"topics":["markdown","mdx","remark-directive","remark-plugin","badge","image","link","video"],"license":"MIT","category":"media-processing","readme_excerpt":"remark-directive-sugar [![version][version-badge]][version-link] [![codecov][coverage-badge]][coverage] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![jsDocs.io][jsdocs-src]][jsdocs-href] A remark plugin provides predefined directives for customizable badges, links, video embeds, enhanced image formatting, and more. What is this? This plugin is built on top of remark-directive, supporting regular usage and providing the following predefined directives: - [ :badge[- ] ](#badge-): Generates customizable badges. - :link : Creates links to GitHub, npm, or custom URLs. - [ ::video[- ] ](#video-): Embeds videos from platforms like YouTube, Bilibili, Vimeo, or custom sources. - :::image- : Wraps an image inside valid HTML tags, such as a element to allow adding a descriptive , or a hyperlink to make it clickable, and more. When should I use this? If you're using remark-directive , this plugin provides ready-to-use directives, saving you from writing custom code. If you're building a blog with frameworks like Astro or Next.js, it helps enhance your Markdown / MDX content without repetitive HTML. [!NOTE] This plugin requires remark-directive , so make sure to install it as well. Check out the Remark Directive Syntax for a quick and easy overview! Installation This package is ESM only. In Node.js (version 18+), install with your package manager: In Deno with esm.sh : In browsers with esm.sh : Usage Import and configure the plugin based on your target environment. For vani","default_branch":null,"files":null,"tree":[],"storefront":"/r/lin-stephanie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lin-stephanie/remark-directive-sugar/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."}