Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Inline Admonitions

scotttomaszewskiscotttomaszewski9k downloads

Inline callouts to make text pop.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates26

This plugin will allow you to format inline codeblocks to better stand out on the page. For example, you may want to have all inline codeblocks that start with "IMPORTANT" to have a red background like this.

img.png

inlineAdmonition_1.2.0.webm

Usage

To add an Inline Admonition to your note, first [create a new Inline Admonition](#Creating a new Inline Admonition) of the desired type.

Then add an inline codeblock with the appropriate trigger text. For example, a [Prefix Inline Admonition](#Prefix Type) with a prefix of IMPORTANT will trigger when an inline codeblock starts with "IMPORTANT", like this:

Normal text `IMPORTANT - dont forget the milk!` and some more normal text

Creating a new Inline Admonition

Open the "Inline Admonition" settings and click "Create New Inline Admonition" at the top to bring up a Modal to configure a new Inline Admonition.

admonition-modal.png

Common settings:

  • Background Color is the color of the Inline Admonition "bubble"
  • Background Opacity supports transparency of the background
  • Hide Background allows the background (including spacing) to be hidden
  • Text Color is the text color
  • Text Opacity supports transparency of the text
  • Type defines how an Inline Admonition is triggered. See the types documentation for more details.
  • Prefix Icon allows you to select an icon to include at the beginning of the inline admonition.
    • Note: Prefix Icons are not supported in Live Preview mode because it causes cursor navigation issues.
  • Suffix Icon allows you to select an icon to include at the end of the inline admonition.
    • Note: Suffix Icons are not supported in Live Preview mode because it causes cursor navigation issues.
  • Font allows selection of the font

Types

The Inline Admonition "Type" defines what triggers the codeblock to convert into an Inline Admonition. Current supported Types are:

  • Prefix Type
  • Suffix Type
  • Contains Type
  • Regex Type

Prefix Type

Prefix Inline Admonitions trigger when a codeblock starts with specific text.

Settings

  • Prefix defines the text at the start of the codeblock to trigger the Inline Admonition.
  • Hide prefix text - if enabled, the triggering prefix text will not show in the Inline Admonition.

Suffix Type

Suffix Inline Admonitions trigger when a codeblock ends with specific text.

Settings

  • Suffix defines the text at the end of the codeblock to trigger the Inline Admonition.
  • Hide suffix text - if enabled, the triggering suffix text will not show in the Inline Admonition.

Contains Type

Contains Inline Admonitions trigger when a codeblock contains specific text anywhere within it.

Settings

  • contains defines the text within the codeblock to trigger the Inline Admonition.

Regex Type

Regex Inline Admonitions trigger when a codeblock matches a specific regular expression.

Settings

  • Regex defines the regular expression to match against the codeblock content to trigger the Inline Admonition.
  • Sample Input is used to help test your regex and also helps the settings display the sample.

Notes

  • The CSS of the Inline Admonitions rides on Obsidian's Tag css. I'll clean this up in a future release.
  • Saving settings will trigger a re-render of the markdown views. Its possible to avoid this and is planned for a future release
  • Similar to Contexual Typography this plugin will give you some css classes that you can manually manipulate

Future work

  • Additional admonitions styles (rounded corners, etc)
  • More comprehensive CSS editing in the settings UI

Known Issues

  • Newly created inline admonitions might not render in Live Preview. Reload the app as a workaround

Development

See the changelog for changes

Build

  • npm i to install deps
  • npm run dev to build and watch

Release

Upload the files manifest.json, main.js, styles.css as binary attachments

68%
HealthExcellent
ReviewRisks
About
Format inline codeblocks into styled inline admonitions triggered by prefix, suffix, contains, or regex patterns. Customize background and text colors, opacity, icons, and fonts to make inline notes stand out.
AppearanceFormattingIcons
Details
Current version
1.10.0
Last updated
2 months ago
Created
2 years ago
Updates
26 releases
Downloads
9k
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
scotttomaszewskiscotttomaszewski
github.com/scottTomaszewski
GitHubscotttomaszewski
  1. Community
  2. Plugins
  3. Appearance
  4. Inline Admonitions

Related plugins

Link Favicons

See the favicon for a linked website.

List Callouts

Create simple callouts in lists.

Callout Manager

Easily create and customize callouts.

Heading Level Indent

Indenting content under headers based on their level.

Inline Callouts

Add inline callouts/badges/icons to notes.

Better Bullets

Improves readability of bulleted notes.

Multi-Column Markdown

Create Markdown documents with multiple columns of content viewable in reading mode.

Iconize

Add icons to anything in Obsidian, including files, folders, and text.

Minimal Theme Settings

Control the colors and fonts in Minimal Theme.

Hider

Hide interface elements such as tooltips, status bar, titlebar, and more.