2025-04-04 23:11:01 +00:00
# Inline Callouts
## Introduction
2025-04-07 12:10:15 +00:00
A plugin for displaying inline "callouts" in [Obsidian.md ](https://github.com/obsidianmd ); a successor to the [Badges ](https://github.com/gapmiss/badges ) plugin by the same author. Key differences: simpler syntax, access to all Lucide icons in Obsidian, modal interfaces for icon suggestions, new inline callout and modify inline callout.
2025-04-04 23:11:01 +00:00
2025-04-05 00:49:32 +00:00
- [Demo ](#demo )
2025-04-04 23:11:01 +00:00
- [Features ](#features )
- [Usage ](#usage )
- [Caveats ](#caveats )
- [Installation ](#installation )
- [CSS styles ](#css )
- [Style Settings plugin ](#style-settings-plugin )
- [Development ](#development )
- [Credits ](#credits )
- [Notes ](#notes )
2025-04-05 00:49:32 +00:00
## Demo
> [!NOTE]
> See demo markdown file [here](./demo/example.md)
2025-04-05 00:27:36 +00:00
2025-04-06 21:02:35 +00:00

2025-04-05 00:27:36 +00:00
2025-04-06 21:02:35 +00:00

2025-04-04 23:11:01 +00:00
## Features
2025-04-07 12:10:15 +00:00
### "New inline callout" modal
2025-04-06 21:49:50 +00:00
< details style = "margin-block: 1em;" >
2025-04-06 21:59:02 +00:00
< summary > 👇️ Show GIF screencast< / summary >
2025-04-06 21:49:50 +00:00
< p > < / p >
< p >
2025-04-06 21:54:29 +00:00
< img src = "https://github.com/gapmiss/inline-callouts/blob/master/screenshots/Inline-Callouts-demo-Obsidian-v1.8.9-2025-04-06-16.28.58.gif?raw=true" alt = "New Inline Callout modal" / >
2025-04-06 21:49:50 +00:00
< / p >
< / details >
2025-04-07 12:10:15 +00:00
### "Modify inline callout" Modal
2025-04-06 21:49:50 +00:00
< details style = "margin-block: 1em;" >
2025-04-06 21:59:02 +00:00
< summary > 👇️ Show GIF screencast< / summary >
2025-04-06 21:49:50 +00:00
< p > < / p >
< p >
2025-04-06 21:54:29 +00:00
< img src = "https://github.com/gapmiss/inline-callouts/blob/master/screenshots/Inline-Callouts-demo-Obsidian-v1.8.9-2025-04-06-16.32.11.gif?raw=true" alt = "Modify Inline Callout modal" / >
2025-04-06 21:49:50 +00:00
< / p >
< / details >
2025-04-07 12:10:15 +00:00
### Editor auto-complete icon suggester
2025-04-06 21:49:50 +00:00
< details style = "margin-block: 1em;" >
2025-04-06 21:59:02 +00:00
< summary > 👇️ Show GIF screencast< / summary >
2025-04-06 21:49:50 +00:00
< p > < / p >
< p >
2025-04-06 22:35:42 +00:00
< img src = "https://github.com/gapmiss/inline-callouts/blob/master/screenshots/Inline-Callouts-demo-Obsidian-v1.8.9-2025-04-06-16.40.29.gif?raw=true" alt = "Auto-complete icon suggester" / >
2025-04-06 21:49:50 +00:00
< / p >
< / details >
2025-04-06 21:02:35 +00:00
2025-04-07 12:10:15 +00:00
### "Search for inline callouts" modal
2025-04-06 22:31:38 +00:00
< details style = "margin-block: 1em;" >
< summary > 👇️ Show GIF screencast< / summary >
< p > < / p >
< p >
< img src = "https://github.com/gapmiss/inline-callouts/blob/master/screenshots/Inline-Callouts-demo-Obsidian-v1.8.9-2025-04-06-17.19.23.gif?raw=true" alt = "Icon suggestion modal" / >
< / p >
< / details >
2025-04-07 12:10:15 +00:00
### Compatible with Style Settings plugin
2025-04-06 22:31:38 +00:00
< details style = "margin-block: 1em;" >
< summary > 👇️ Show screenshot< / summary >
< p > < / p >
< p >
2025-04-07 12:10:15 +00:00
< img src = "https://github.com/gapmiss/inline-callouts/blob/master/screenshots/Inline-Callouts-demo-Obsidian-v1.8.9-2025-04-06-17.24.20.png?raw=true" alt = "Compatible with Style Settings plugin" / >
2025-04-06 22:31:38 +00:00
< / p >
< / details >
2025-04-07 12:10:15 +00:00
### Settings
2025-04-06 22:31:38 +00:00
< details style = "margin-block: 1em;" >
< summary > 👇️ Show screenshot< / summary >
< p > < / p >
< p >
2025-04-07 12:10:15 +00:00
< img src = "https://github.com/gapmiss/inline-callouts/blob/master/screenshots/Inline-Callouts-demo-Obsidian-v1.8.9-2025-04-06-17.23.37.png?raw=true" alt = "Settings" / >
2025-04-06 22:31:38 +00:00
< / p >
< / details >
2025-04-04 23:11:01 +00:00
## Usage
### Syntax
```markdown
`[!!ICON|LABEL|COLOR]`
```
| Syntax | Details |
| ----------------- | ------------------------------ |
2025-04-06 21:02:35 +00:00
| `ICON` | Name of the Lucide icon |
| `LABEL` (optional) | Callout label/title text |
2025-04-04 23:11:01 +00:00
| `COLOR` (optional) | RGB values or Obsidian CSS var |
> [!IMPORTANT]
> The `LABEL` cannot contain either the `|` pipe or the <code>`</code> backtick symbols, as they are used as delimiters for the custom syntax.
## Caveats
2025-04-07 12:10:15 +00:00
- Consecutive inline callouts must be separated by at lease one space, character, or line return to be rendered correctly in reading view.
- Inline callouts do not work inside wiki or external link markdown
2025-04-04 23:11:01 +00:00
- Markdown and HTML code is NOT rendered in the callout label
2025-04-06 21:02:35 +00:00
- When using inline callouts in a table, the pipe characters must be escaped by a backslash `\` . e.g.:
2025-04-04 23:11:01 +00:00
```
2025-04-05 00:27:36 +00:00
| example |
| ---------------------------------------- |
| `[!!info\|Lorem\|var(--color-blue-rgb)]` |
2025-04-04 23:11:01 +00:00
```
## Installation
2025-04-05 01:54:16 +00:00
[Find at Obsidian.md/plugins ](https://obsidian.md/plugins?search=inline-callouts )
2025-04-04 23:11:01 +00:00
2025-04-05 01:54:16 +00:00
From Obsidian's settings:
2025-04-04 23:11:01 +00:00
1. Community Plugins > Browse
2025-04-05 01:54:16 +00:00
2. Search for "Inline Callouts"
Via BRAT (Beta Reviewer's Auto-update Tool):
1. Ensure [BRAT ](https://github.com/TfTHacker/obsidian42-brat ) is installed
2. Trigger the command Obsidian42 - BRAT: Add a beta plugin for testing
3. Enter this repository, gapmiss/inline-callouts
2025-06-29 15:34:23 +00:00
4. Enable the "Inline Callouts" plugin in the community plugin list
2025-04-05 01:54:16 +00:00
2025-04-04 23:11:01 +00:00
Manually:
2025-05-05 11:09:50 +00:00
1. download `main.js` , `manifest.json` & `styles.css` from the latest [release ](https://github.com/gapmiss/inline-callouts/releases/ )
2025-04-04 23:11:01 +00:00
2. create a new folder `/path/to/vault/.obsidian/plugins/inline-callouts`
3. move all 3 files to `/path/to/vault/.obsidian/plugins/inline-callouts`
4. Settings > Community plugins > reload **Installed plugins**
5. enable plugin
## CSS
Custom `CSS` styles can be applied via CSS snippets. All colors and styles can be over-written just the same.
See [CSS snippets - Obsidian Help ](https://help.obsidian.md/Extending+Obsidian/CSS+snippets )
2025-04-06 21:02:35 +00:00
### Variables
2025-04-04 23:11:01 +00:00
```css
body {
--inline-callout-font-size: .85em;
--inline-callout-font-weight: 400;
--inline-callout-border-radius: 4px;
--inline-callout-bg-transparency: .1;
--inline-callout-margin: 1px;
--inline-callout-padding-top: 1px;
--inline-callout-padding-right: 0px;
--inline-callout-padding-bottom: 2px;
--inline-callout-padding-left: 0px;
--inline-callout-icon-size: .85em;
--inline-callout-icon-margin-top: 3px;
--inline-callout-icon-margin-right: 3px;
--inline-callout-icon-margin-bottom: 0px;
--inline-callout-icon-margin-left: 5px;
--inline-callout-label-margin-top: 2px;
--inline-callout-label-margin-right: 5px;
--inline-callout-label-margin-bottom: 0px;
--inline-callout-label-margin-left: 2px;
}
```
2025-04-06 21:02:35 +00:00
### Obsidian.md RGB color variables
2025-04-07 12:10:15 +00:00
```
2025-04-06 21:02:35 +00:00
var(--mono-rgb-0)
var(--mono-rgb-100)
var(--color-red-rgb)
var(--color-orange-rgb)
var(--color-yellow-rgb)
var(--color-green-rgb)
var(--color-cyan-rgb)
var(--color-blue-rgb)
var(--color-purple-rgb)
var(--color-pink-rgb)
```
2025-04-04 23:11:01 +00:00
## Style Settings plugin
2025-04-06 21:02:35 +00:00
The above `--inline-callout-*` CSS variables can be modified via the [Style Settings plugin ](https://github.com/mgmeyers/obsidian-style-settings )
2025-04-04 23:11:01 +00:00
## Development
### Clone this repo
```bash
cd /path/to/vault/.obsidian/plugins
git clone https://github.com/gapmiss/inline-callouts.git
cd inline-callouts
```
### Install packages and run
```bash
2025-05-10 12:18:09 +00:00
npm i
npm run dev
2025-04-04 23:11:01 +00:00
```
### Enable plugin
1. open `Settings` → `Community plugins`
2. enable the `Inline Callouts` plugin.
## Credits
Some code inspired by and derived from:
- [chrisgurney/obsidian-note-toolbar ](https://github.com/chrisgurney/obsidian-note-toolbar/ )
- [javalent/admonitions ](https://github.com/javalent/admonitions/ )
- [Moyf/easy-copy ](https://github.com/Moyf/easy-copy/ )
- [nhaouari/obsidian-textgenerator-plugin ](https://github.com/nhaouari/obsidian-textgenerator-plugin/ )
- [steven-kraft/obsidian-markdown-furigana ](https://github.com/steven-kraft/obsidian-markdown-furigana )
Thank you!
## Notes
[Lucide ](https://github.com/lucide-icons/lucide ) Icons: https://lucide.dev
Lucide Icons LICENSE: https://lucide.dev/license