{"repo":"lin-stephanie/rehype-callouts","free":true,"listed":false,"github":"https://github.com/lin-stephanie/rehype-callouts","clone":"git clone https://github.com/lin-stephanie/rehype-callouts.git","description":"Render blockquote-based callouts (admonitions/alerts).","language":"TypeScript","stars":51,"topics":["admonitions","alerts","callouts","rehype-plugin","obsidian","astro","markdow"],"license":"MIT","category":"docs-static-sites","readme_excerpt":"rehype-callouts [![version][version-badge]][version-link] [![codecov][coverage-badge]][coverage] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![jsDocs.io][jsdocs-src]][jsdocs-href] A rehype plugin for processing and rendering blockquote-based callouts. What is this? This plugin adds support for callouts (admonitions/alerts), allowing you to use Obsidian's callout syntax to achieve the following features: - Includes default callout types for various themes. - Supports collapsible callouts with -/+ and nestable callouts. - Optionally import stylesheets for corresponding themes. - Allows custom titles with markdown syntax. - Customizable default callout types. - Configurable new callout types. - Configurable aliases for callout types. - Configurable icon display. - Configurable element attributes. When should I use this? This plugin helps render markdown callouts, ideal for blogs built with frameworks like Astro or Next.js. It processes HTML directly without needing allowDangerousHtml in remark-rehype and supports collapsible callouts with the details tag, all without JavaScript. If your content uses Python-Markdown or MkDocs Material admonitions, convert them into blockquote callouts to render them with this plugin. See Example: render Python-Markdown and MkDocs Material admonitions. 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 Say example.md contains: For ","default_branch":null,"files":null,"tree":[],"storefront":"/r/lin-stephanie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lin-stephanie/rehype-callouts/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."}