Starting with JetBrains IDEs based on the 2026.2 platform, runnable Markdown code blocks execute from the project root by default.
Previously, commands ran from the directory containing the Markdown file.
This can affect Markdown runbooks that use paths relative to the document:
project/
├── docs/
│ ├── maintenance.md
│ └── cleanup.sh
└── ...
Given this code block in docs/maintenance.md:
./cleanup.shThe expected working directory may be project/docs, but the new default runs it from project, where ./cleanup.sh does not exist.
JetBrains provides a compatibility registry option:
markdown.command.runner.use.file.directory
To enable it:
-
Press
Ctrl+Shift+Ato open Find Action. -
Search for Registry.
-
Open the Registry action.
-
Search for:
markdown.command.runner.use.file.directory -
Enable the checkbox.
Runnable Markdown commands will now use the Markdown file's parent directory as their working directory, restoring the behavior from versions before 2026.2.