mirror of
https://github.com/amix/vimrc
synced 2024-12-22 18:03:06 +00:00
49 lines
323 B
Text
49 lines
323 B
Text
|
Given markdown;
|
||
|
# a
|
||
|
|
||
|
a
|
||
|
=
|
||
|
|
||
|
## b
|
||
|
|
||
|
b
|
||
|
-
|
||
|
|
||
|
Execute (SetexToAtx):
|
||
|
:SetexToAtx
|
||
|
|
||
|
Expect (convert setex-style headings to atx):
|
||
|
# a
|
||
|
|
||
|
# a
|
||
|
|
||
|
## b
|
||
|
|
||
|
## b
|
||
|
|
||
|
Given markdown;
|
||
|
a
|
||
|
=
|
||
|
|
||
|
b
|
||
|
=
|
||
|
|
||
|
c
|
||
|
-
|
||
|
|
||
|
d
|
||
|
-
|
||
|
|
||
|
Execute (SetexToAtx with range):
|
||
|
:1,8SetexToAtx
|
||
|
|
||
|
Expect (only convert setex headings in original range):
|
||
|
# a
|
||
|
|
||
|
# b
|
||
|
|
||
|
## c
|
||
|
|
||
|
d
|
||
|
-
|