Skip to content

Makes Obsidian can mark abbreviations and acronyms (terminology) automatically.

License

Notifications You must be signed in to change notification settings

dragonish/obsidian-abbreviations

Repository files navigation

Abbreviations and Acronyms

Obsidian Plugin

Introduction

This is a plugin for Obsidian.

Implements automatic marking of abbreviations and acronyms (terminology).

Usage

Gets the abbreviations by reading the specified field in the note properties(metadata), and automatically render the abbreviations in the note content.

This plugin supports rendering in both editing view (Live Preview) and reading view.

Metadata format

You can use arrays of strings or key-value pairs.

Strings

Use a colon (:) in the string to separate the abbreviation and the tooltip.

Example:

---
abbr:
  - "HTML: HyperText Markup Language"
  - "CSS: Cascading Style Sheets"
---

Tip

The advantage of this format is that abbreviations can be added or removed directly in display mode.

Key-value pairs

Use the abbreviation for key and the tooltip for value.

Example:

---
abbr:
  - HTML: HyperText Markup Language
  - CSS: Cascading Style Sheets
---

Settings

Metadata keyword

This plugin allows you to customize the keyword that read abbreviations from properties, default value is abbr.

Global abbreviations

This plugin allows you to customize globally available abbreviations.

If you want to disable a specific abbreviation in your notes, you can declaring the abbreviation as an empty string value in the properties.

Example:

---
abbr:
  - "HTML:  " # string format
  - CSS: "" # key-value pair format
---

Preview

Live Preview:

Source mode Live Preview
source-mode live-preview

Reading:

Source mode Reading
source-mode reading

License

MIT license