{"repo":"jghauser/auto-pandoc.nvim","free":true,"listed":false,"github":"https://github.com/jghauser/auto-pandoc.nvim","clone":"git clone https://github.com/jghauser/auto-pandoc.nvim.git","description":"Use pandoc to convert markdown files according to options from a yaml block","language":"Nix","stars":41,"topics":["neovim","nvim","plugin","lua","pandoc","markdown","pdf","conversion","preview"],"license":"GPL-3.0","category":"media-processing","readme_excerpt":"auto-pandoc.nvim This plugin allows you to easily convert your markdown files using pandoc. It uses a custom key in the yaml block at the beginning of the markdown file to set pandoc settings. Converting your file then just requires running the supplied command (see below under configuration). This allows for quickly updating the file without having to supply file formats and other settings. Installation Packer: Lazy.nvim Configuration The plugin provides the run pandoc() function that will execute pandoc. For convencience sake, it's useful to add a keymap for it. The following snippet will add a keymap for markdown files so that go executes pandoc (in normal mode). Adapt to your preferences. Use Use the pandoc key in the yaml block to set options supplied to the pandoc command. The only deviation from the conventions of the pandoc cli program is the output field. You can either set it to your desired filename (in which case it works exactly like pandoc's --output ) or you can set it to the filename extension prepended by a '.' (e.g. '.pdf'). In that case, auto-pandoc will pass an --output value to pandoc that is the current filename with the extension swapped out (e.g. 'my file.md' will generate a 'my file.pdf'). Boolean options must be set to true/false (e.g. option: true instead of just option ). Todo/limitations - The plugin doesn't currently deal well with spaces in file and directory names. - The plugin only processes YAML configurations that are a single level deep. If","default_branch":null,"files":null,"tree":[],"storefront":"/r/jghauser","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jghauser/auto-pandoc.nvim/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}