Hexo Admonition

screenshot of Hexo Admonition
hexo

Add block-styled admonition to hexo, e.g. note, warning or error. | Hexo内容辅助插件,支持向文档中添加如提示、警告、错误等块式内容。

Overview

Hexo-admonition is a powerful plugin designed to enhance the readability of Markdown documents by integrating warning and informational blocks, reminiscent of reStructuredText. This versatile tool aims to bridge the gap between Hexo and Material for MkDocs, allowing for a smooth and visually appealing reading experience on sites built with MkDocs. Whether you are creating tutorials, documentation, or any content that benefits from annotated tips, this plugin is an essential addition to your Hexo setup.

What makes Hexo-admonition stand out is its simplicity and ease of use, enabling users to incorporate a variety of alert styles such as notes, warnings, errors, and more. With just a few simple syntax rules, you can effortlessly enhance your content's presentation and make it more engaging for your readers.

Features

  • Simple Syntax: Each admonition block starts with "!!!", followed by the type and title, allowing for easy integration into your Markdown files.
  • Customizable Types: Supports various alert types such as note, warning, error, and more, each with its own CSS class for tailored styling.
  • Default Titles: If no title is specified, the type acts as the default title, streamlining the process without unnecessary complexity.
  • Optional Title: You have the option to hide the title by leaving it as "", providing a cleaner look for your warning blocks.
  • Markdown Nesting: Allows standard Markdown tags within the admonition blocks, giving you the flexibility to style your alerts with additional formatting.
  • Custom Styles: You can easily configure styles by editing your theme's CSS file, ensuring that the appearance aligns with your website's overall design.
  • MIT License: Freed from licensing worries, you can use, modify, and distribute the plugin as you see fit, fostering an open-source community.
hexo
Hexo

Hexo is a static site generator built with Node.js that enables developers to create fast and efficient websites using Markdown, EJS, and Stylus. It offers features such as server-side rendering, plugin support, and easy deployment to hosting services like GitHub Pages and Netlify.