Contextual Typography for Obsidian
Adds a data-tag-name attribute to all top-level divs in preview mode, containing the child's tag name, enabling contextual typography styling.
Chinese summary
在预览模式下为所有顶级div添加data-tag-name属性,该属性包含子元素的标签名,从而实现上下文字体样式定制。
Key Use Cases
- Customizing font styles based on the type of content (e.g., headings, paragraphs, lists)
- Creating context-aware CSS rules for better visual hierarchy
Pros
- Provides a simple way to target specific child elements via CSS
- Enhances flexibility for theming and custom styling without complex selectors
Limitations
- Requires CSS knowledge to utilize effectively
- May add extra attributes that could affect performance or clutter markup
Tags
Related Plugins
2.5M downloads
Git
Git plugin automatically backs up your Obsidian vault to a Git repository on a schedule. It's the go-to backup and version control solution for technical users who want full history of their notes.
2.3M downloads
Style Settings
Allows users to adjust CSS variables of themes, plugins, and custom snippets directly from an intuitive settings panel.
Get the best Obsidian plugins in your inbox
Monthly picks: top new plugins, hidden gems, and curated plugin stacks for different workflows.