No description
Find a file
@gapmiss 3cb8a6d45e fix: remove unused variables in editor view
Remove dead code (_currentLine, startOfLine, endOfLine) flagged by
community plugin scanner. Per-match selection checking already handles
cursor overlap.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-06-06 14:42:24 -05:00
.github/workflows fix: remove plugin reload, fix all ESLint errors, add release workflow 2026-05-21 19:22:33 -05:00
demo README.md, modals, example.md 2025-04-06 16:02:35 -05:00
screenshots Update README.md 2025-04-06 17:31:38 -05:00
src fix: remove unused variables in editor view 2026-06-06 14:42:24 -05:00
.editorconfig Initial commit 2025-04-04 18:11:01 -05:00
.gitignore docs: add CONTRIBUTING guide 2026-05-31 14:12:33 -05:00
.npmrc Initial commit 2025-04-04 18:11:01 -05:00
CONTRIBUTING.md docs: add CONTRIBUTING guide 2026-05-31 14:12:33 -05:00
esbuild.config.mjs fix: replace builtin-modules with Node.js built-in 2026-05-21 19:28:21 -05:00
eslint.config.mjs fix: remove plugin reload, fix all ESLint errors, add release workflow 2026-05-21 19:22:33 -05:00
LICENSE LICENSE copyright 2025-04-29 16:22:09 -05:00
manifest.json chore: release 0.1.9 2026-06-06 14:32:07 -05:00
package-lock.json fix: remove plugin reload, fix all ESLint errors, add release workflow 2026-05-21 19:22:33 -05:00
package.json chore: release 0.1.9 2026-06-06 14:32:07 -05:00
README.md docs: update README.md 2026-06-02 17:14:27 -05:00
release.mjs fix: remove plugin reload, fix all ESLint errors, add release workflow 2026-05-21 19:22:33 -05:00
styles.css feat: add custom font CSS variable 2026-05-30 17:46:14 -05:00
tsconfig.json fix: enable strict mode and fix TypeScript errors 2026-06-06 14:31:46 -05:00
version-bump.mjs Initial commit 2025-04-04 18:11:01 -05:00
versions.json chore: release 0.1.9 2026-06-06 14:32:07 -05:00

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.

Installation

Install from community.obsidian.md

From Obsidian's settings or preferences:

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

Manually:

  1. download the latest release archive
  2. uncompress the downloaded archive
  3. move the inline-callouts folder to /path/to/vault/.obsidian/plugins/
  4. Settings > Community plugins > reload Installed plugins
  5. enable plugin

or:

  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

Demo

Note

See demo markdown file here

Features

"New inline callout" modal

👇 Show GIF screencast

New Inline Callout modal

"Modify inline callout" Modal

👇 Show GIF screencast

Modify Inline Callout modal

Editor auto-complete icon suggester

👇 Show GIF screencast

Auto-complete icon suggester

"Search for inline callouts" modal

👇 Show GIF screencast

Icon suggestion modal

Compatible with Style Settings plugin

👇 Show screenshot

Compatible with Style Settings plugin

Settings

👇 Show screenshot

Settings

Usage

Syntax

`[!!ICON|LABEL|COLOR]`
Syntax Details
ICON Lucide icon name, or none/blank for no icon
LABEL(optional) Callout label/title text
COLOR(optional) Hex, 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-family: inherit;
    --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