Markdown has a concept of a "paragraph" different from that of MS Word.
In MS Word, all text wrapping is "soft wrapped"—that is, you keep typing text without pressing "Enter" (or "Return") until you have finished an entire paragraph.
In Markdown, you can do that, but more often markdown source will be "hard wrapped"—in other words, while typing a paragraph ...
There is an inbuilt feature in vim, write this
use yy5p to paste 5 (or use any number) lines of number 1)
Now select from the second to the last line and press g then Ctrl+A. It will populate numbered lists automatically as
The linked plugin gives the following regexs (modified to only include #-relevant parts):
The first requires an alphabetic character (/\a) after the #; the second does not (.*). So you could take at least the function PandocSectionMovement and keybindings if you modify the first regex to
Do be warned that this might ...
If you read vim-pandoc's help (:h pandoc.txt) you will see, in the section called *vim-pandoc-keyboard-module*, this line:
<localleader>#* apply header (accepts a count) [n]
Notice the [n] at the end of the line - it means the map is only available when in normal mode. This probably means the map action applies to the whole current line.