CheatMD
unlistedby Gubarz
Inline execution, status linting, and variable autocompletion for CheatMD sheets.
CheatMD for Obsidian
A lightweight Obsidian plugin providing editor and preview support for CheatMD sheets. Write executable Markdown cheatsheets directly inside your vault.
Features
- 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.
Requirements
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.
Disclosures
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.
Flatpak sandboxing on Linux
[!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.Obsidian
This 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.
Install manually
- 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.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.