qianhanglv4 downloadsTypora-like line breaking: Enter starts a new paragraph, Shift+Enter inserts a soft break, Backspace at a paragraph start steps back cleanly, and pasted plain text is split into paragraphs. Typora 式换行
中文说明 → README.zh-CN.md
A Typora-like line-breaking plugin for Obsidian.
If you moved from Typora to Obsidian, you probably hit the same three annoyances: one Enter does not start a real paragraph, Shift+Enter does not feel like a soft break, and Backspace at the start of a paragraph does not jump cleanly to the end of the previous one. This plugin fixes those, and tidies up pasted plain text too.
Turn off “Strict line breaks” (Settings → Editor → Strict line breaks).
It is ON by default in Obsidian. With it on, the single \n written by Shift+Enter is rendered as a space, so soft breaks collapse into the paragraph. The plugin shows a one-time reminder if it detects the setting is on.
| Action | Behavior |
|---|---|
| Enter | Always inserts exactly two newlines — a real paragraph break |
| Shift+Enter | Inserts exactly one newline — a soft break inside the paragraph |
| Backspace at paragraph start | Looks at how many newlines precede the cursor: even → removes two, odd → removes one. The cursor always lands on a normal text line |
| Paste | Plain text that is only hard-wrapped (single newlines, no blank lines, no Markdown syntax) is split into paragraphs. Markdown-looking text is pasted unchanged |
| Blank lines | Rendered as a short paragraph gap instead of a full empty line |
Every behavior has its own toggle. Lists, blockquotes, tables, fenced code blocks, math blocks and YAML frontmatter are never touched — they keep Obsidian's native behavior.
Settings → Community plugins → Browse → search for Better Line Breaks (or typora).
Download main.js, manifest.json and styles.css from the latest release and put them in:
<vault>/.obsidian/plugins/typora-flow/
Then enable the plugin in Settings → Community plugins.
| Setting | Default | What it does |
|---|---|---|
| Enter / Shift+Enter 换行 | On | Enter = paragraph break, Shift+Enter = soft break |
| 段首退格 / Smart Backspace | On | Step over blank lines as described above |
| 粘贴时整理段落 / Reformat pasted text | On | Turn hard-wrapped plain text into paragraphs |
A single paste can bypass the cleanup: run “Paste as-is” from the command palette.
Shift+Enter writes one \n into the file. A soft break is still a real line in the editor — the plugin cannot make it disappear, it only makes blank lines visually short.--tf-paragraph-gap in styles.css (default 0.9em).No build step. main.js is plain CommonJS and is the source.
node _test.cjs # 47 assertions, no dependencies
MIT