Merge pull request #251 from jconroy77/markdown_nested_syntax
Automatic detection of nested syntaxes in markdown
This commit is contained in:
commit
2c9df65644
@ -1994,7 +1994,7 @@ endfunction "}}}
|
||||
" vimwiki#base#detect_nested_syntax
|
||||
function! vimwiki#base#detect_nested_syntax() "{{{
|
||||
let last_word = '\v.*<(\w+)\s*$'
|
||||
let lines = map(filter(getline(1, "$"), 'v:val =~ "{{{" && v:val =~ last_word'),
|
||||
let lines = map(filter(getline(1, "$"), 'v:val =~ "\\%({{{\\|```\\)" && v:val =~ last_word'),
|
||||
\ 'substitute(v:val, last_word, "\\=submatch(1)", "")')
|
||||
let dict = {}
|
||||
for elem in lines
|
||||
|
Loading…
Reference in New Issue
Block a user