Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Base Tag Renderer

darrenkurodarrenkuro7k downloads

Render the basename of tags in preview mode.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates18

This plugin renders only the basename for tags while maintaining the nested strucutres elsewhere.

It also appends a new class name (basename-tag) so it's possible to add custom style to it.

This is not actively maintained. As I haven't used Obsidian much, and they kept rolling out new features so it's a bit hard to keep up. I am currently busy with other projects also. Feel free to do a PR if you want to add something. The code structure is very simple. Issues aren't guaranteed to be resolved promptly but I'll try my best.

The custom css applied for the above example -

a.basename-tag[href*="animal"]::before,
span.basename-tag[data-tag*="animal"]::before {
    content: "😍 ";
}
a.basename-tag[href*="cat"]::before,
span.basename-tag[data-tag*="cat"]::before {
    content: "🐱 ";
}
a.basename-tag[href*="dog"]::before,
span.basename-tag[data-tag*="dog"]::before {
    content: "🐶 ";
}

Version 1.2 (July 30th, 2023)

  • Add text change for tags in property as well.

Version 1.1 (Feb 23rd, 2023)

  • Add support for editor mode including tags in the frontmatter.
59%
HealthFair
ReviewCaution
About
Render only the basename of nested tags while preserving the full nested structure elsewhere. Add a basename-tag CSS class to tag elements so you can style basenames differently; works in editor mode, frontmatter, and properties.
TagsCSSAppearance
Details
Current version
1.2.1
Last updated
3 years ago
Created
3 years ago
Updates
18 releases
Downloads
7k
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
darrenkurodarrenkuro
github.com/darrenkuro
GitHubdarrenkuro
  1. Community
  2. Plugins
  3. Tags
  4. Base Tag Renderer

Related plugins

Style Settings

Adjust theme, plugin, and snippet CSS variables.

Lapel

Show the heading levels in the gutter of the editor.

Snippetor

Create and tweak common snippets.

Colored Bases Properties

Color property lists and formula properties in Bases.

Show Whitespace

CSS styles and CM6 extensions to highlight whitespace in Source and Live Preview modes.

Supercharged Links

Add attributes to internal links with the values of target note's frontmatter attributes.

Contextual Typography

Add a data-tag-name attribute to all top-level divs in preview mode containing the child's tag name, allowing contextual typography styling.

Focus Mode

Add a toggle to hide interface elements so you can focus on your note.

Colored Tags

Colorize tags in different colors to visually distinguish them from each other.

Better Bullets

Improves readability of bulleted notes.