Skip to content

QMike0/siyuan-plugin-callout-enhance

Repository files navigation

SiYuan Callout Enhance Plugin

简体中文

Important

In addition to the five native callout types in SiYuan, this plugin adds several new styles. Please note that when these new styles are converted back to official callouts (i.e., when this plugin is disabled), there will be display issues: they will become callout blocks with transparent backgrounds and missing icons. Use with caution if you mind this!

Main Features

For more details, please refer to here.

(1) Callout Appearance Enhancement

Default appearance:

callout_type

After nesting:

callout_nesting

(2) Quick Title Editing

title_editing

(3) Quick Fold/Unfold

fold&unfold

(4) Completion Menu

  • Type [ or at the beginning of the first line of a quote block to open the completion menu.
  • Supports keyboard navigation or mouse click to select a type.
  • Supports auto-completion. Note: you do not need to type ! after [ / ; just type letters to trigger completion.

completion_menu

(5) Type Menu

  • Click the icon to open the type menu.
  • Supports keyboard navigation or mouse click to select a type.

type_menu

(6) Settings: Callout Appearance Customization

  • Customize callout appearance under Settings → Appearance, with preset save/load, preset management, and live preview.

  • Example: GitHub-style callout appearance:

    PixPin_2026-06-02_00-02-02

(7) Settings: Callout Type Management

  • Under Settings → Callout Types, add, delete, disable, reorder, and edit callout types. Built-in SiYuan types (NOTE, TIP, etc.) cannot be deleted.

    PixPin_2026-06-02_00-53-281

  • The callout style edit dialog supports custom label, keywords, main color, and icon, with live preview while editing.

    PixPin_2026-06-02_00-57-411

(8) Settings: Other

  • Settings → About → Clean up legacy data: Before using this feature, understand the effects of the following operations under Settings → Callout Types:

    • Rename label: Callout blocks in your notes still keep the old data-subtype. The plugin automatically saves the pre-rename label as a past label so those blocks continue to match your styles.
    • Delete callout type: Matching blocks keep their original data-subtype and fall back to the default (NOTE) styling. The deleted type’s label and past labels are recorded in the tombstone list.

    Clean up legacy data migrates callout block data-subtype values in your notes to the new label or the NOTE label, so past labels and the tombstone can be cleared safely.

  • Settings → About → Debug log: Show detailed plugin DEBUG logs in the SiYuan console.

Changelog

See CHANGELOG.md

Development

Download the source code of this repository and package the plugin as follows:

  1. Install Node.js and pnpm.
  2. Run pnpm i in the current directory.
  3. Run pnpm run dev for the development build.
  4. Run pnpm run build to package package.zip.

License

MIT License

Acknowledgments

Other

For simple usage, you can also base it on the code snippets here without adding this plugin.

However, please note that this plugin has received many optimizations on top of those snippets. Unless there are special circumstances, the code snippets will not be updated in the future. Therefore, it is strongly recommended to use the plugin directly.

About

参考Obisidon Callout,对思源笔记Callout块进行美化与增强

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors