No description
Find a file
2025-03-27 20:10:40 +08:00
.gitea ci(gitea): restore the tag-changelog action 2025-03-19 23:08:14 +08:00
.github init: repository initialisation 2025-03-08 20:39:07 +08:00
common fix(heading): fix some judgment errors for heading alternate syntax 2025-03-14 15:15:53 +08:00
components fix(editing): fix last line in editing view not rendered 2025-03-14 13:23:53 +08:00
images docs(readme): add interaction with the collapse button 2025-03-13 11:28:10 +08:00
test/common fix(heading): fix some judgment errors for heading alternate syntax 2025-03-14 15:15:53 +08:00
.editorconfig init: repository initialisation 2025-03-08 20:39:07 +08:00
.gitattributes config(git): specify the eol of the manifest.json file 2025-03-15 20:05:28 +08:00
.gitignore init: repository initialisation 2025-03-08 20:39:07 +08:00
.mocharc.cjs feat: implement decoration for reading view 2025-03-10 14:01:36 +08:00
.npmrc init: repository initialisation 2025-03-08 20:39:07 +08:00
.versionrc.json init: repository initialisation 2025-03-08 20:39:07 +08:00
esbuild.config.mjs init: repository initialisation 2025-03-08 20:39:07 +08:00
eslint.config.mjs config(eslint): add an eslint configuration 2025-03-08 21:58:29 +08:00
LICENSE init: repository initialisation 2025-03-08 20:39:07 +08:00
main.ts perf(reading): optimize performance in reading view 2025-03-18 21:35:44 +08:00
manifest.json chore(release): 1.1.3 2025-03-21 13:03:47 +08:00
package.json chore(package): replace dependencies 2025-03-27 20:10:40 +08:00
pnpm-lock.yaml chore(package): replace dependencies 2025-03-27 20:10:40 +08:00
README.md docs(readme): update description 2025-03-21 13:01:55 +08:00
styles.css tweak(styles): optimize the situation when "Fold heading" is not enabled 2025-03-13 12:22:58 +08:00
tsconfig.json init: repository initialisation 2025-03-08 20:39:07 +08:00
version-bump.mjs init: repository initialisation 2025-03-08 20:39:07 +08:00
versions.json init: repository initialisation 2025-03-08 20:39:07 +08:00

Heading Decorator

Introduction

This is a plugin for Obsidian.

Implement displaying specific content around headings based on their levels.

This plugin supports optional decoration for reading view and editing view (Live Preview and Source mode). This plugin does not modify any note content, only decorates the heading section based on the existing note content.

Preview

In Live Preview:

Preview

The interaction between the decorator and the collapse button:

Collapse Button Interaction

Settings

Enabled

The plugin supports configure heading decorator for each editor mode. You can control the effect range:

  • Enabled in reading view: Decorate the heading under the Reading view.
  • Enabled in live preview: Decorate the heading under the Live Preview.
  • Enabled in source mode: Decorate the heading under the Source mode.

Effect

Control the display effect of the decorator.

  • Ordered: Toggle this setting to enable the decoration of headings as an ordered or unordered list.
  • Opacity: Set the opacity of the heading decorator. The value is the form of percentage.
  • Position: Set the position of the heading decorator. You can configure the content to appear before or after the heading.

Ordered

Similar to the effect displayed in the Preview.

You can control the counter style type and delimiter. There are two special types of counter styles:

  • Custom list styles: Set custom list styles for ordered list. Using spaces to separate entries.
  • Specified string: Set a specified string for ordered list.

For example:

Decimal numbers Custom List Styles (using Ⓐ Ⓑ Ⓒ) Specified String (using # with empty delimiter)
Decimal numbers Custom list styles Specified string

In addition, for the Ignore the single heading at the top-level setting, if the top-level has only a single heading, exclude it when building an ordered list. For example:

Default Ignore the single heading at the top-level
Default Ignore the single heading at the top-level

For the Allow zero level setting, if the next heading is more than one level higher, the omitted level is zero instead of one. For example:

Default Allow zero level
Default Allow zero level

Unordered

Directly decorate the heading according to the level. For example:

Ordered (Decimal numbers) Unordered (using H1 H2 H3 H4 H5 H6)
Ordered Unordered

Credits

License

MIT license