Skip to main content

Generates ctags-compatible output for the sections of a Markdown document.

Project description

This application generates ctags-compatible output for the sections of a Markdown document.

The motivation was to have a tool fast enough to use with the TagBar plugin in Vim.

Using with TagBar

To use this tool with TagBar, add the following into your ~/.vimrc:

" Add support for markdown files in tagbar.
let g:tagbar_type_markdown = {
    \ 'ctagstype': 'markdown',
    \ 'ctagsbin' : '/path/to/markdown2ctags.py',
    \ 'ctagsargs' : '-f - --sort=yes',
    \ 'kinds' : [
        \ 's:sections',
        \ 'i:images'
    \ ],
    \ 'sro' : '|',
    \ 'kind2scope' : {
        \ 's' : 'section',
    \ },
    \ 'sort': 0,
\ }

You’ll need to have the TagBar plugin installed for this to work. Also, you make need to call the variable g:tagbar_type_mkd and change ctagstype to 'mkd' if you’re Ben William’s Markdown syntax highlighting script. It sets the file type to mkd whereas Tim Pope’s sets it to markdown.

License

This tool is licensed under a Simplified BSD license. See LICENSE.txt for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

markdown2ctags-0.2.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

markdown2ctags-0.2.2-py2.py3-none-any.whl (6.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file markdown2ctags-0.2.2.tar.gz.

File metadata

File hashes

Hashes for markdown2ctags-0.2.2.tar.gz
Algorithm Hash digest
SHA256 448d3809ae2ec03a31e70e7cf3872c969abe46d2113702cadb67562ac76306ae
MD5 e5d73d0a07499c41dea86db52e998f24
BLAKE2b-256 61554cb298edc65ba797e970bd379dd8446559172820c15e2d2b257cca4ff67f

See more details on using hashes here.

File details

Details for the file markdown2ctags-0.2.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for markdown2ctags-0.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7593c1f6055cd52b79da2c7daef68411561fd74757cdefed10b56c7619684095
MD5 b7a15e4d1fbe07aa8309e6468524e13f
BLAKE2b-256 fc98b2673f219c1849b2abc9c1625be3bf49367c09fa081f939786a16bf40013

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page