Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mgmeyers/obsidian-contextual-typography
https://github.com/mgmeyers/obsidian-contextual-typography
obsidian obsidian-md obsidian-plugin
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mgmeyers/obsidian-contextual-typography
- Owner: mgmeyers
- License: gpl-3.0
- Created: 2020-12-15T18:26:44.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-16T20:29:20.000Z (7 months ago)
- Last Synced: 2025-01-03T01:15:51.699Z (9 days ago)
- Topics: obsidian, obsidian-md, obsidian-plugin
- Language: TypeScript
- Homepage:
- Size: 389 KB
- Stars: 169
- Watchers: 3
- Forks: 9
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
- project-awesome - mgmeyers/obsidian-contextual-typography - (TypeScript)
- jimsghstars - mgmeyers/obsidian-contextual-typography - (TypeScript)
README
# obsidian-contextual-typography
This plugin adds a `data-tag-name` attribute to all top-level preview `div`s, allowing contextual typography. Note: this plugin does not add any styles, but enables contextual styling.
This is specifically inspired by http://matejlatin.github.io/Gutenberg/
## Sample
```
.markdown-preview-view div[data-tag-name="h1"] + div > h2 {
margin-top: 1.8888888889rem;
}
```**Before:**
**After:**