Inline Callouts

by @gapmiss
5
4
3
2
1
Score: 32/100

Description

The Inline Callouts plugin adds a clean and efficient way to create inline callouts using simple custom syntax. Users can display small visual highlights with icons, labels, and colours directly within text lines. It includes modals to create or modify callouts, auto-suggestions for Lucide icons, and a search interface for existing callouts. The plugin is compatible with the Style Settings plugin and supports full customization via CSS variables.

Reviews

No reviews yet.

Stats

31
stars
3,601
downloads
0
forks
359
days
306
days
353
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
5
total issues
5
open issues
0
closed issues
0
commits

README file from

Github

Inline Callouts

Introduction

A plugin for displaying inline "callouts" in Obsidian.md; a successor to the 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.

Demo

[!NOTE] See demo markdown file here

Features

"New inline callout" modal

"Modify inline callout" Modal

Editor auto-complete icon suggester

"Search for inline callouts" modal

Compatible with Style Settings plugin

Settings

Usage

Syntax

`[!!ICON|LABEL|COLOR]`
Syntax Details
ICON Name of the Lucide icon
LABEL(optional) Callout label/title text
COLOR(optional) RGB values or Obsidian CSS var

[!IMPORTANT] The LABEL cannot contain either the | pipe or the ` backtick symbols, as they are used as delimiters for the custom syntax.

Caveats

  • 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
  • Markdown and HTML code is NOT rendered in the callout label
  • When using inline callouts in a table, the pipe characters must be escaped by a backslash \. e.g.:
    | example                                  |
    | ---------------------------------------- |
    | `[!!info\|Lorem\|var(--color-blue-rgb)]` |
    

Installation

Find at Obsidian.md/plugins

From Obsidian's settings:

  1. Community Plugins > Browse
  2. Search for "Inline Callouts"

Via BRAT (Beta Reviewer's Auto-update Tool):

  1. Ensure BRAT is installed
  2. Trigger the command Obsidian42 - BRAT: Add a beta plugin for testing
  3. Enter this repository, gapmiss/inline-callouts
  4. Enable the "Inline Callouts" plugin in the community plugin list

Manually:

  1. download main.js, manifest.json & styles.css from the latest release
  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

Variables

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;
}

Obsidian.md RGB color variables

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)

Style Settings plugin

The above --inline-callout-* CSS variables can be modified via the Style Settings plugin

Development

Clone this repo

cd /path/to/vault/.obsidian/plugins
git clone https://github.com/gapmiss/inline-callouts.git
cd inline-callouts

Install packages and run

npm i
npm run dev

Enable plugin

  1. open SettingsCommunity plugins
  2. enable the Inline Callouts plugin.

Credits

Some code inspired by and derived from:

Thank you!

Notes

Lucide Icons: https://lucide.dev

Lucide Icons LICENSE: https://lucide.dev/license

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Icon Shortcodes
4 years ago by AidenLx
Obsidian Plugin: Insert emoji and custom icons with shortcodes
Material Symbols
3 years ago by Cristoph Berane
Callout Manager
3 years ago by eth-p
An Obsidian.md plugin that makes creating and configuring callouts easy.
Iconoir Icons
3 years ago by @gapmiss
A plugin for creating customized icons in Obsidian.md
Pathfinder 2E Action Icons
3 years ago by Thiago Coutinho
Obsidian plugin for easily insertind the Pathfinder 2E Action icons
File indicators
2 years ago by Jakob
Add custom indicators to the file explorer.
Additional Icons
2 years ago by Matthew Turk
Add additional iconsets to Obsidian
Metadata Icon
2 years ago by Benature
change metadata entry icon
Custom Sidebar Icons
2 years ago by RavenHogWarts
Custom Icons
Iconic
2 years ago by Holo
Customize your icons and colors directly from the Obsidian UI, including tabs, files & folders, bookmarks, tags, properties, and ribbon commands.
Icons
5 years ago by Camillo Visini
Add icons to your Obsidian notes – Experimental Obsidian Plugin
Style Settings
5 years ago by mgmeyers
A dynamic user interface for adjusting theme, plugin, and snippet CSS variables within Obsidian
Icon Swapper
5 years ago by mgmeyers
Allows swapping out Obsidian's icons
Iconize
5 years ago by FlorianWoelki
Simply add icons to anything you want in Obsidian.
CalloutX
a year ago by br4in
An Obsidian plugin that allows you to view, manage, and customise callout icons in your vault.
Syncthing status icon
a year ago by Diego Viero
Image Preview on Icon Hover
a year ago by rama1997
Plugin for Obsidian that add image popups when hovering over various icons in the user interface
NerdFont Icon Picker
a year ago by Xaver Wenhart
a simple nerdfont icon picker for obsidian
Note Favicon
a year ago by mdklab
Obsidian plugin – Show Favicon from Metadata
Simple Colored Folder
a year ago by Mara-Li
Color each folder starting by their root. Allow to detecting root directly by obsidian ; and configuring using Style Settings.
Animated Cursor
10 months ago by Kotaindah55
Simple yet smooth animated cursor.
My SVGs
3 months ago by Omar Badawy
An Obsidian plugin that Registers your own SVGs into Obsidian's global icon library for use with other plugins or however you want.
Mermaid Icons
3 months ago by toshs
Obsidian plugin enabling the use of icons in Mermaid diagrams.