A lightweight Obsidian plugin providing editor and preview support for CheatMD sheets. Write executable Markdown cheatsheets directly inside your vault.
- Inline Play Buttons: Renders a
▶ Run with CheatMDbutton above Markdown code fences under headings in Reading mode and Live Preview mode. - Inline Execution Results: Runs
cheatmd --headlessin the background and renders output below the clicked code block. - Status Bar Diagnostic Linter: Runs
cheatmd --lintin the background on vault changes and updates a status bar indicator (✓ CheatMD: Clean,⚠ CheatMD: N Findings, or✗ CheatMD: CLI Not Found). - Variable Autocomplete: Suggests variables such as
$nameand<name>when you type$or<inside code blocks.
CheatMD for Obsidian requires the cheatmd command-line tool. Install CheatMD from the official releases or follow the setup instructions at either location:
- Website: https://cheatmd.dev
- GitHub: https://github.com/cheatmd-dev/cheatmd
After installing, make sure cheatmd is available in your system path. You can also set an absolute path in the plugin settings.
CheatMD for Obsidian starts the local cheatmd binary for linting and inline execution. It passes the current vault path to that local command. The plugin does not send telemetry, show ads, require an account, or make network requests.
Warning
If you installed Obsidian via Flatpak, its sandbox cannot launch host binaries unless explicitly allowed.
CheatMD uses flatpak-spawn --host so the plugin can run the cheatmd binary installed on your host system. To allow that, grant Obsidian access to Flatpak's host-spawn D-Bus interface:
flatpak override --user --talk-name=org.freedesktop.Flatpak md.obsidian.ObsidianThis permission lets sandboxed Obsidian start local commands as your user. If you do not want to grant it, use a native non-Flatpak Obsidian install or leave inline execution unavailable.
- Download
main.js,manifest.json, andstyles.cssfrom the plugin release. - Inside your Obsidian vault, navigate to
.obsidian/plugins/(create thepluginsfolder if it doesn't exist). - Create a new subfolder named
cheatmd. - Copy
main.js,manifest.json, andstyles.cssinto.obsidian/plugins/cheatmd/. - Open Obsidian.
- Navigate to Settings > Community plugins.
- Select Reload to refresh the list, locate CheatMD, and enable it.