Fix formatlistpat to work with ordered list.
Before formatting with gq command:
List Header:
1. Consectetur ipsa dolore nesciunt id ipsam sed ullam? In ut cumque hic consequatur veritatis. Nihil consequuntur tenetur aliquid illo non!
2. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent aliquet metus sed metus vulputate efficitur!
After formatting with gq command:
List Header:
1. Consectetur ipsa dolore nesciunt id ipsam sed ullam? In ut cumque hic
consequatur veritatis. Nihil consequuntur tenetur aliquid illo non!
2. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent aliquet
metus sed metus vulputate efficitur!
Long list item is broken into 2 items when the list is formated with gq:
Before formating with gq command:
List Header:
* Consectetur ipsa dolore nesciunt id ipsam sed ullam? In ut cumque hic consequatur veritatis. Nihil consequuntur tenetur aliquid illo non!
* Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent aliquet metus sed metus vulputate efficitur!
After formating with gq command:
List Header:
* Consectetur ipsa dolore nesciunt id ipsam sed ullam? In ut cumque hic
consequatur veritatis. Nihil consequuntur tenetur aliquid illo non!
* Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent
aliquet metus sed metus vulputate efficitur!
[Fix] Horizontal rules are not joined with the header anymore:
Big Header
*****************
If the text above is formatted with gq, the ********** line will be joined with the line above:
Big Header *****************
This commit fixes this error.
[Fix] Similarly to 3., if gq is executed on a codeblock, it would join the starting with the first line in the code block and the last line with the ending:
` ` `Code block line 1
Code block line 2` ` `
The fix will leave it intact after executing gq on the codeblock.
Fix formatlistpat to work with ordered list. Before formatting with
gq
command:After formatting with
gq
command:Long list item is broken into 2 items when the list is formated with
gq
: Before formating withgq
command:After formating with
gq
command:[Fix] Horizontal rules are not joined with the header anymore:
If the text above is formatted with
gq
, the**********
line will be joined with the line above:This commit fixes this error.
[Fix] Similarly to 3., if
gq
is executed on a codeblock, it would join the startingwith the first line in the code block and the last line with the ending
:The fix will leave it intact after executing
gq
on the codeblock.