This is a plugin for Obsidian.md that adds the ability to configure variables per vault, similar to traditional environment variables. The variables get replaced during Markdown post-processing so they can change the final HTML output. This can be used to keep absolute file paths generic and re-usable across multiple devices, as seen in the demo below:
Does not work with Live Preview. See this issue for more info.
- Check out the full documentation
- Check out the changelog
This plugin is not yet part of the community plugin list so it cannot be installed from Obsidian so it must be installed manually with the following steps:
- Go to repo's Releases page
- Download
main.js
,styles.css
andmanifest.json
from the latest release - Move the downloaded files to a new folder inside your plugins folder:
VaultFolder/.obsidian/plugins/obsidian-variables/
- Go to
Community plugins
and enable theVariables
plugin.