Skip to content

Auto display sequence number before titles for Siyuan Note

License

Notifications You must be signed in to change notification settings

dale0525/siyuan-auto-seq-number

Repository files navigation

中文

SiYuan Auto Header Sequence Number Plugin

A SiYuan Plugin to auto generate sequence number for headers.

Usage

Just turn on the plugin, and refresh the page.

Known Issues

  • The sequence number is only rendered in SiYuan Note but will not change the original article, so the numbers will not be exported to other formats.

Change Log

1.0.1

  • fix issue when seq number is large than 6

1.0.0

  • add settings to customize the sequence number for each level of header
  • future updates will be paused unless there are bugs

0.2.0

  • change event bus to loaded-protyle-static( #1 )
  • display seq number using ::before and cache result using SessionStorage, so that the seq number won't be reset when focusing on a block( #2, #3 )