Skip to content

Commit

Permalink
Merge pull request #182 from docwhat/pr/reference-links
Browse files Browse the repository at this point in the history
put --reference-links in extra_equalprg
  • Loading branch information
fmoralesc committed Aug 18, 2016
2 parents 1846174 + 5f8a555 commit 3f5fd61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions autoload/pandoc/formatting.vim
Expand Up @@ -43,7 +43,7 @@ function! pandoc#formatting#Init() "{{{1
" equalprg {{{3
if !exists("g:pandoc#formatting#equalprg")
if executable('pandoc')
let g:pandoc#formatting#equalprg = "pandoc -t markdown --reference-links"
let g:pandoc#formatting#equalprg = "pandoc -t markdown"
if g:pandoc#formatting#mode =~ "h"
let g:pandoc#formatting#equalprg.= " --columns ".g:pandoc#formatting#textwidth
else
Expand All @@ -55,7 +55,7 @@ function! pandoc#formatting#Init() "{{{1
endif
" extend the value of equalprg if needed
if !exists("g:pandoc#formatting#extra_equalprg")
let g:pandoc#formatting#extra_equalprg = ""
let g:pandoc#formatting#extra_equalprg = "--reference-links"
endif
" }}}3
" Use a custom indentexpr? {{{3
Expand Down
4 changes: 2 additions & 2 deletions doc/pandoc.txt
Expand Up @@ -622,15 +622,15 @@ A description of the available configuration variables follows:
enabled, it might cause some lag.

- *g:pandoc#formatting#equalprg*
default = "pandoc -t markdown --reference-links [--columns {g:pandoc#formatting#textwidth}|no-wrap]"
default = "pandoc -t markdown [--columns {g:pandoc#formatting#textwidth}|--wrap=none]"

What command to use for equalprg. If set to '', vim's default will be used.
See |'equalprg'|.
NOTE the default changes depending on whether the formatting mode uses hard
or soft wraps.

- *g:pandoc#formatting#extra_equalprg*
default = ""
default = "--reference-links"

Extra arguments to append to the value of equalprg. Useful when the default
behavior of |g:pandoc#formatting#equalprg| wants to be preserved.
Expand Down

0 comments on commit 3f5fd61

Please sign in to comment.