honkit-plugin-blockquote-callout

1.0.0 • Public • Published

Honkit plugin Blockquote callout

This Honkit plugin converts blockquotes into GitHub Flavor markdown Alert-like information for both websites and ebooks.

output example

output example

input markdown

> [!NOTE]
> Note text

<span></span> <!-- The markdown parser used by honkit will treat two blockquotes separated by one or more blank lines as the same blockquote -->

> [!TIP]
> Tips text

<span></span>

> [!IMPORTANT]
> Important text

<span></span>

> [!WARNING]
> Warning text

<span></span>

> [!CAUTION]
> Caution text

<span></span>

> [!UnsupportedAnnotation]
>
> Normal block quotes

<span></span>

> [!Warning|title:※注]
>
> Change label "Warning" -> "※注"
>

Installation

  1. Install this plugin.
  2. Add this plugin to your book.json file.

Example book.json

{
  "plugins": [
    "blockquote-callout"
  ]
}

Motivation

This plugin was created as an alternative to plugins that use web fonts (e.g. fontawesome) that are not embedded during PDF generation.

Package Sidebar

Install

npm i honkit-plugin-blockquote-callout

Weekly Downloads

11

Version

1.0.0

License

MIT

Unpacked Size

1.08 MB

Total Files

18

Last publish

Collaborators

  • int28_t