akahuku / wasavi

wasavi is an extension for Chrome, Firefox, and Opera. wasavi changes a textarea element to virtual vi editor which supports almost all the vi/ex commands.
http://appsweets.net/wasavi/
Other
1.51k stars 66 forks source link

Markdown Paser Seems Swallows All New Lines #199

Open shinemoon opened 6 years ago

shinemoon commented 6 years ago

Chrome Extension User. And I found only in case I put 'writeas=textandBreak' can keep original new line I type in, but if I hope to write Markdown in other format , after 'wq', all new line will be eliminated but only keep only 1 staying there.

This issue somehow reported in some history tickets but not solved. and during my experiment, it's also interesting, if I put:

VI EDIT:

line 1 <br><br>
line 2

it can correctly shows 2 newlines; And even when I reenter vi mode, I can only see 2 visible new lines (<br> disappears), like;

DISPLAY:

line 1

line 2

but if I just append some line like:

VI EDIT:

line 1

line 2

line 3

it wil shows like:

DISPLAY:

line 1 
line 2
line 3

i.e once the newline created by some way like <br> , wasavi can recorgnize, but even I following markdown rule to keep enough newlines with ending spaces, they will not be recognized correctly...and those previous 'created' new line will be swallowed again by parser..

yingshaoxo commented 5 years ago

Same question here.

Feel pretty strange, because some times in markdown we have to use a new line to write that document.


After some struggle, I fond https://github.com/cknadler/vim-anywhere

It's useful for reuse old vim settings.