/.obsidian/plugins/preserve-blank-lines/`.
3. In Obsidian: **Settings -> Community plugins**, disable Restricted mode if needed, click the refresh icon, then enable **Preserve Blank Lines**.
### From the community store
Not yet submitted. Once approved, it will be installable from **Settings -> Community plugins -> Browse**.
## Customize spacing
Each preserved blank line is rendered as a ``. Add a CSS snippet (**Settings -> Appearance -> CSS snippets**) to tweak height:
```css
.preserve-blank-line {
line-height: 1.5;
}
```
## Known limitations
- **Skips nested contexts.** Inside callouts, transclusions/embeds, and some other nested rendering contexts, Obsidian's `MarkdownPostProcessorContext.getSectionInfo()` returns `null`. Blocks in those contexts are silently passed through unchanged. See the [API docs](https://docs.obsidian.md/Reference/TypeScript+API/MarkdownPostProcessorContext/getSectionInfo).
## Build from source
Requires [Node.js](https://nodejs.org/) 18+ and npm.
```sh
git clone https://github.com/Ivanohe73/obsidian-preserve-blank-lines.git
cd obsidian-preserve-blank-lines
npm install
npm run dev # watch mode for development
npm run build # production bundle
```
The build outputs `main.js` in the project root.
## License
[MIT](LICENSE)