Dynamic Line Height for CJK
approvedby Ryota Ushio
Dynamically adjust line height for lines & paragraphs containing CJK characters.
Obsidian Dynamic Line Height for CJK
This Obsidian.md plugin dynamically adjusts the height of each line (in Editing View) or paragraph (in Reading View) based on it contains CJK (Chinese, Japanese, and Korean) characters. This is useful because CJK characters typically require more line height than European alphabets.
Line height for lines and paragraphs containing CJK characters can be set via Style Settings.
Moreover, this plugin adds the .cjk CSS class to lines and paragraphs containing CJK characters. This allows more advanced styling via CSS snippets.
Usage
- Install this plugin and enable it.
- Install Style Settings and enable it. If it's already enabled, you might need to reload it.
- Customize the line height for CJK via Style Settings if necessary. This can be done by either of the followings:
- Settings > Style Settings > Dynamic Line Height for CJK > Line height for CJK lines and paragraphs
- Command Palette > Run the command "Style Settings: Show style settings view" > Dynamic Line Height for CJK > Line height for CJK lines and paragraphs
Installation
You can find this plugin in the community plugin browser within Obsidian.
You can also install the latest beta release using BRAT.
- Install the latest version of BRAT and enable it.
- Open the following URL in browser:
obsidian://brat?plugin=RyotaUshio/obsidian-dynamic-line-height-cjk. - Click the "Add Plugin" button.
- (Optional but highly recommended) In the BRAT settings, turn on
Auto-update plugins at startupat the top of the page.
Support development
If you find this plugin useful, please support my work by buying me a coffee!
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.
