Skip to content

Convert MarkDown files to Exuberant Ctags using libcmark

License

Notifications You must be signed in to change notification settings

buzzingwires/cmark2ctags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmark2ctags

Convert MarkDown files to Exuberant Ctags using libcmark

Building and Installation

There are a number of build types for cmark2ctags. All of them require the libcmark library for static linking.

ldc-production : Build production code using the ldc2 compiler.
dmd-production : Build production code using the dmd compiler.
dmd-profile : Build profiling code using the dmd compiler.
dmd-profile-gc : Build garbage collector profiling code using the dmd compiler.
ldc-coverage : Build coverage checking/debugging code using the ldc compiler.
dmd-coverage : Build coverage checking/debugging code using the dmd compiler.

Choose a build type and run dub build -b <build type> for the dmd options. For the ldc options, dub build -b <build type> --compiler=ldc2 is probably necessary.

Vim Integration

Using the tagbar-markdown plugin for Vim, cmark2ctags offers an alternative option for ctags generation. Try the following code in your vimrc:

let g:tagbar_type_markdown = {
    \ 'ctagstype': 'markdown',
    \ 'ctagsbin' : '/opt/cmark2ctags',
    \ 'ctagsargs' : '-f - -r "<sro>" -e "<sro_escaped>" --sort=yes',
    \ 'kinds' : [
        \ 's:section',
		\ 'r:reference',
        \ 'i:image',
		\ 'l:link'
    \ ],
    \ 'sro' : '<sro>',
    \ 'kind2scope' : {
        \ 's' : 'section',
    \ },
    \ 'sort': 0,
\ }

About

Convert MarkDown files to Exuberant Ctags using libcmark

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages