A simple, hacky plugin for JetBrains IDEs that makes <details></details> sections in Markdown files collapsed by default.
(May not be kept up to date in the future.)
- Download the latest release from the project.
- Install in IDE: Settings/Preferences > Plugins > Gear icon > Install Plugin from Disk… and choose the ZIP in build/distributions.
- Restart the IDE. Open a Markdown file containing
<details>…</details>; the sections should appear collapsed with the summary as the hint.
- Ensure you have JDK 21 available.
cd collapse-markdown-details
./gradlew buildPluginor
- Open the project in your IDE.
- Build the plugin using the
buildPlugintask.
Then,
- Install in IDE: Settings/Preferences > Plugins > Gear icon > Install Plugin from Disk… and choose the ZIP in build/distributions.
- Restart the IDE. Open a Markdown file containing
<details>…</details>; the sections should appear collapsed with the summary as the hint.