by Therek13
Adds Discord-style -# subtext formatting in Live Preview and Reading View.
↓ 31 downloadsUpdated 13d agoAGPL-3.0
Discord Subtext for Obsidian
A lightweight Obsidian plugin that adds Discord-style -# subtext formatting. Any line starting with -# renders as smaller, muted text in both Live Preview and Reading View.
Usage
Type -# at the beginning of any line:
-# This is a subtext line.
You can also use the Command Palette (Ctrl/Cmd + P) and run Toggle Discord subtext (-#) to add or remove the prefix on your current line. You can assign a custom hotkey to this command in Settings > Hotkeys.
Settings
- Font size (em): Adjust the size of the subtext relative to your normal editor font (default:
0.82). - Text color: Set a custom CSS color or Obsidian CSS variable (default:
var(--text-muted)). - Hide "-# " syntax in Live Preview: Automatically hides the
-#prefix in Editing View unless your cursor is on that line.
Installation
From Community Plugins (Once Approved)
- Open Settings > Community Plugins in Obsidian.
- Disable Restricted Mode if prompted.
- Click Browse, search for Discord Subtext, and click Install.
- Enable the plugin.
Manual Installation
- Download
main.js,manifest.json, andstyles.cssfrom the latest release. - Create a new folder named
discord-subtextinside your vault's.obsidian/plugins/directory. - Move the three downloaded files into that folder.
- Reload Obsidian and enable the plugin under Settings > Community Plugins.
API Documentation
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.