rc markdown: Fix trailing whitespace removal

Modified the test cases accordingly too
This commit is contained in:
SeerLite 2021-04-01 21:19:20 -03:00
parent 5c03e2bd54
commit e84dd80244
6 changed files with 6 additions and 6 deletions

View File

@ -106,7 +106,7 @@ define-command -hidden markdown-indent-on-new-line %{
# preserve previous line indent # preserve previous line indent
try %{ execute-keys -draft <semicolon> K <a-&> } try %{ execute-keys -draft <semicolon> K <a-&> }
# remove trailing white spaces # remove trailing white spaces
try %{ execute-keys -draft -itersel %{ k<a-x> s \h+$ <ret> d } } try %{ execute-keys -draft k <a-x> s \h+$ <ret> d }
} }
} }

View File

@ -1,2 +1,2 @@
>> > > block >> > > block
>> > > quote >> > > quote

View File

@ -1,2 +1,2 @@
* inside * inside
* item * item

View File

@ -1,3 +1,3 @@
- parent - parent
* some * some
* child * child

View File

@ -1,2 +1,2 @@
> block > block
> quote > quote

View File

@ -1,2 +1,2 @@
**strong **strong
emphasis** emphasis**