Move line down inserts blank lines instead of swapping with table

Steps to reproduce

consider this text:

### characteristics for each phase
some text with the cursor being on this row

| Phase        | Characteristics                                                                                    |
| ------------ | -------------------------------------------------------------------------------------------------- |
| introduction | small sales; high costs and prices; low quality; users are willing to take a risk                  |
| growth       | market accelerates & market penetration; quality improves; prices drop; larger groups of customers |
| maturity     | sales stagnate; saturation, replacement market; stable quality; customers are price sensitive      |
| decline      | sales shrink, users search for alternatives                                                        |

Expected result

When I hit the hotkey for move line down, since nothing else is after it, i’d except the line to be swapped with the table:

### characteristics for each phase

| Phase        | Characteristics                                                                                    |
| ------------ | -------------------------------------------------------------------------------------------------- |
| introduction | small sales; high costs and prices; low quality; users are willing to take a risk                  |
| growth       | market accelerates & market penetration; quality improves; prices drop; larger groups of customers |
| maturity     | sales stagnate; saturation, replacement market; stable quality; customers are price sensitive      |
| decline      | sales shrink, users search for alternatives                                                        |

some text with the cursor being on this row

Actual result

Instead a blank line in inserted above the curent line:

### characteristics for each phase

some text with the cursor being on this row

| Phase        | Characteristics                                                                                    |
| ------------ | -------------------------------------------------------------------------------------------------- |
| introduction | small sales; high costs and prices; low quality; users are willing to take a risk                  |
| growth       | market accelerates & market penetration; quality improves; prices drop; larger groups of customers |
| maturity     | sales stagnate; saturation, replacement market; stable quality; customers are price sensitive      |
| decline      | sales shrink, users search for alternatives                                                        |

if you repeatedly hit the move line down hotkey, more lines will be inserted above it, without it being swapped with the table, e.g.:

### characteristics for each phase








some text with the cursor being on this row

| Phase        | Characteristics                                                                                    |
| ------------ | -------------------------------------------------------------------------------------------------- |
| introduction | small sales; high costs and prices; low quality; users are willing to take a risk                  |
| growth       | market accelerates & market penetration; quality improves; prices drop; larger groups of customers |
| maturity     | sales stagnate; saturation, replacement market; stable quality; customers are price sensitive      |
| decline      | sales shrink, users search for alternatives                                                        |

Environment

SYSTEM INFO:
	Obsidian version: 1.14.4
	Installer version: 1.14.4
	Operating system: Windows 11 Pro 10.0.26200
	Login status: not logged in
	Language: en
	Insider build toggle: off
	Live preview: on
	Base theme: dark
	Community theme: Flexoki 1.1.0
	Snippets enabled: 16
	Restricted mode: off
	Plugins installed: 29
	Plugins enabled: 26
		1: Copy Block Link v1.0.4
		2: Contextual Typography v2.2.5
		3: Shell commands v0.23.0
		4: Style Settings v1.0.9
		5: Templater v2.25.0
		6: Image Gallery v1.1.1
		7: Text Transform v1.4.1
		8: Sort and Permute lines v0.8.0
		9: Share Note v1.5.5
		10: Heading Shifter v1.14.0
		11: Commander v0.5.8
		12: Focus Mode v1.12.0
		13: Keyboard Analyzer v0.4.1
		14: Quick Tagger v2.2.4
		15: Find Orphaned Images v1.3.0
		16: Text Extractor v0.7.0
		17: Hot Reload v0.3.1
		18: Emoji Autocomplete v1.5.4
		19: More Excellent Hotkeys v2.2.4
		20: Import Attachments+ v1.6.5
		21: Hide Sidebars on Window Resize v1.2.0
		22: Omnisearch v1.30.1
		23: Tab Switcher v1.5.2
		24: Latex Suite v1.12.8
		25: Named Links v1.2.0
		26: Quick Switcher++ v6.1.6

RECOMMENDATIONS:
	Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.


Additional information

N/A

Ran into this too. Glad you reported it. Live Preview is enforcing a blank line above the table. Quite unintuitive.

Though, I wouldn’t expect the nomadic line to skip the header and become the new first row unless it already had table row syntax:
| cursor in this row | |

The addition of blank lines is the part that’s unintuitive to me. With the plain text in your example, I feel like either nothing should happen (which of course could also be unintuitive to many) or the line ought to jump the table entirely and appear beneath it.


Workarounds

A. Switch to Source mode. There’s no blank-line enforcement there.

B. Start with (or paste) the nomadic line below the table. Give it table-row syntax. Then do any one of:

  • Place the cursor on the line and move it up into the table. Use table commands to further move it up and down.
  • Same as above but instead of moving the nomadic line, delete the blank line.
  • Select the entire line. (Simply placing the cursor on the line doesn’t work for this one.) Move it up into the table. Continue using Move line commands. They move a table row under these circumstances.

Example:

| a   | b   |
| --- | --- |
| a1  | b1  |
| a2  | b2  |
| a3  | b3  |

| nomadic line | |

C. Start with the line below the table, no table syntax. Place the cursor on the line, and move the line up. This breaks the table, which makes sense and actually makes it easier to travel to a destination and easier to edit until you’re ready to make it a full-fledged table row. Then type (in this order) a pipe at the end and a pipe at the beginning.

Example:

| a   | b   |
| --- | --- |
| a1  | b1  |
| a2  | b2  |
| a3  | b3  |

nomadic line