Sébastien Dubois89 downloadsReplace variables across your vault using HTML comment markers. Supports static values and dynamic functions.
Replace variables across your Obsidian vault using HTML comment markers. Configure key-value pairs in settings, and Expander will automatically substitute them throughout your notes, and keep those updated too.
now().format("YYYY-MM-DD") for dynamic contentYou can also browse the catalog on the Obsidian Community website.
If the plugin isn't listed in the community catalog yet (or you want a specific version):
main.js, manifest.json, and styles.css from the latest release.<Vault>/.obsidian/plugins/expander/.BRAT (Beta Reviewers Auto-update Tool) installs plugins straight from a GitHub repo and keeps them updated automatically. Use this if you want the latest commits — things might break.
https://github.com/dsebastien/obsidian-expander.today, value: now().format("YYYY-MM-DD"))<!-- expand: today -->
Just add an opening tag - the closing tag is added automatically:
<!-- expand: key -->
After expansion:
<!-- expand: key -->value<!---->
Update mode variants:
<!-- expand: key --> - Auto mode (updates on file change)<!-- expand-manual: key --> - Manual mode (update via command only)<!-- expand-once: key --> - Once mode (fills once, never updates)<!-- expand-once-and-eject: key --> - Once-and-eject mode (fills once, removes markers)Dynamic values using function expressions:
| Function | Description | Example |
|---|---|---|
now() |
Current date/time | now().format("YYYY-MM-DD") |
today() |
Today at midnight | today().format("MM/DD/YYYY") |
format(pattern) |
Format date | now().format("HH:mm") |
lower() |
Lowercase | now().format("MMMM").lower() |
upper() |
Uppercase | now().format("MMMM").upper() |
trim() |
Trim whitespace | |
replace(old, new) |
Replace text | replace("-", "/") |
Full documentation available at docs/.
See DEVELOPMENT.md for build instructions, testing setup, and contribution guidelines.
If you find this plugin useful, consider supporting my work:
MIT License - see LICENSE for details.
To stay up to date about this plugin, Obsidian in general, Personal Knowledge Management and note-taking:
Created by Sébastien Dubois (@dSebastien)