blob: 5b4ea205b9fe16ac64e961963f5e63ab7ce89299 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
" Add an underline under a heading
function! markdown#Heading(char) abort
let pos = getpos('.')
let heading = getline(pos[1])
let underline = repeat(a:char, strlen(heading))
call append(pos[1], underline)
let pos[1] += 1
let pos[2] = 1
call setpos('.', pos)
endfunction
|