kiwijanus229 downloadsChange line endings to CRLF when copying text on Windows (add carriage return).
An Obsidian plugin that ensures content copied from your notes uses platform-appropriate line endings. Currently, it targets Windows users, replacing Unix-style line feeds (\n) with Windows-style carriage return + line feed (\r\n) only when copying text. Your markdown files remain untouched.
\n with \r\n on copy if your OS is WindowsCtrl + C).md filesThis plugin is now published to the Obsidian Community Plugins directory. Install it directly from Obsidian:
Fix Line Endings on Copy, then install and enable it.obsidian://show-plugin?id=line-ending-copyfix.<your-vault>/.obsidian/plugins. The folder structure should look like this:<your-vault>/.obsidian/plugins/obsidian-line-ending-copyfix/
├── main.js
└── manifest.json
Obsidian uses LF (\n) line endings across all platforms, which is great for consistency.
However, many older Windows applications expect CRLF (\r\n) line endings. Without this, copied content may appear "squished" into a single line.
This plugin solves that by converting line endings only at the time of copying, so your notes stay clean and portable.
Bug reports, feature requests, and pull requests are welcome on the GitHub Repository