Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion autoload/markdown.vim
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ function! s:Pandoc.generate(theme, restart) abort
let stylesheet = s:css_path . a:theme . '.css'
let highlight = s:highlight_path . a:theme . '.theme'
let input_format = get(g:, 'nvim_markdown_preview_format', 'gfm')
let extra_args = get(g:, 'nvim_markdown_preview_extraargs', [])

let self.server_index_path = s:output_path
let self.server_root = fnamemodify(input_path, ':h')
Expand All @@ -36,7 +37,7 @@ function! s:Pandoc.generate(theme, restart) abort
\ '--metadata',
\ 'pagetitle='.filename,
\ '--include-in-header='.l:stylesheet,
\ ],
\ ] + extra_args,
\ self
\ )
endif
Expand Down