Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

Latest commit

 

History

History
188 lines (113 loc) · 6.18 KB

File metadata and controls

188 lines (113 loc) · 6.18 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

5.0.0 - 2025-10-07

Added

  • Support collapsible callouts
  • On-demand tag name customization with is property
  • On-demand hiding hint icon with showHint="false" property

Removed

  • Breaking showIndicator option

Changed

  • Expose generate function through options to provide complete control over callout body
  • Breaking GitHub, Microflash and Vitepress themes
  • Simpler warning hint icon

4.4.0 - 2025-04-03

Patched

  • Upgrade to hastscript@9.0.1

4.3.3 - 2025-02-07

Patched

4.3.2 - 2024-10-26

Patched

  • Upgrade to mdast-util-from-markdown@2.0.2

4.3.1 - 2024-06-30

Fixed

  • Icon alignment in the bundled themes

4.3.0 - 2024-06-30

Fixed

  • Revert the hint icons are not wrapped inside a div (introduced in 4.0.0). This should fix the sizing issues on icons when callout-indicator is a flex container and title breaks into multiple lines.

4.2.0 - 2024-06-11

Added

  • Option to remove the indicator, available on-demand using showIndicator="false" property. See the example.
  • Docs on how to use themes Step by step instructions on how to use a bundled theme.

4.1.0 - 2024-02-21

Fixed

  • Revert unwrapping single node in the callout body since it was naively getting rid of lists and blockquotes.

4.0.0 - 2024-02-17

Added

  • New themes and ready to use aliases for GitHub and VitePress lookalike callouts. Remix your own if things don't look fancy enough for your taste. Themes and configurations are now properly exposed through package.json so you can directly import them.

    For example, you can import GitHub configuration as follows.

    import githubCalloutOptions from "@microflash/remark-callout-directives/config/github";
    
    unified().use(remarkParse).use(remarkDirective)
      .use(remarkCalloutDirectives, githubCalloutOptions)
      .use(remarkRehype, { allowDangerousHtml: true })
      .use(rehypeStringify, { allowDangerousHtml: true })
      .process(await read("example.md"));

    All themes now support light and dark color schemes (through prefers-color-scheme).

  • This version gets rid of Infima theme; the plugin gives you enough flexibility to recreate it (check out the GitHub theme as the starting point).

Changed

  • Sheds some DOM elements The hint icons are no longer wrapped inside a div. Also, if there's only one paragraph in the callout body, the content of paragraph are unwrapped instead of being wrapped inside a redundant paragraph element (reverted in 4.1.0). This is where things might break for you; you might have to tweak your styles to fix them.
  • Accessibility improvements The hint icons are now marked as decorative through aria-hidden=true. I'm not a screen reader user, so please do let me know if you feel papercuts because of this plugin. I'd be exceedingly happy to improve things.

3.1.0 - 2024-02-06

Changed

  • Handle custom classes passed to callouts (earlier they were just being ignored; now they'd be appended to other callout classes)

3.0.0 - 2024-02-06

Added

  • Global tagName configuration

Patched

  • Upgrade to hastscript@9.0.0
  • Upgrade to defu@6.1.4

2.0.0 - 2023-12-05

Changed

  • Breaking Drop support for Node.js versions below 16 (since the underlying dependencies now require Node.js 16)

Patched

  • Upgrade to hastscript@8.0.0
  • Upgrade to mdast-util-from-markdown@2.0.0
  • Upgrade to unist-util-visit@5.0.0
  • Upgrade to defu@6.1.3

1.6.0 - 2023-07-06

Changed

  • Relax hint parsing to allow fancy SVGs

1.5.0 - 2022-12-20

Added

  • Support markdown in callout title

1.1.0 - 2022-12-20

Changed

  • Improve alias resolution

1.0.3 - 2022-12-19

Changed

  • Docs with details on element customization

1.0.2 - 2022-12-19

Added

  • New theme: VitePress

1.0.1 - 2022-12-19

Added

  • Docs
  • New theme: Infima
  • Theme previews

1.0.0 - 2022-12-18

Added

  • Plugin with Microflash theme