Problem using formatter

Robert Goulding <[email protected]> Sat, 23 Jul 2022 10:28:27 -0400
Newsgroups gmane.editors.nano.general
Message-ID <CACE7mssS-gzMZ_VgGuFzHvY4sM3FsjVx7JeqbzVE7h-tUXOcqg@mail.gmail.com>
Using nano 6.3 on Debian bullseye.

I am trying to use pandoc to tidy up and reformat markdown files. So, I
have the following two lines at the top of my markdown.nanorc file:

syntax "Markdown" "\.(md|mkd|mkdn|markdown)$"
formatter pandoc --wrap=none -t
markdown-simple_tables-pipe_tables-multiline_tables

When I hit M-F, the screen flashes, but the content of the buffer is not
changed. However, when I quit nano, the properly formatted buffer is
visible in the terminal.

Attached is a sample file, and what my terminal looks like after I quit
nano.

Robert.

-- 
Robert Goulding
Director, John J. Reilly Center for Science, Technology, and Values;
Director, Program in History and Philosophy of Science;
Assoc. Professor, Program of Liberal Studies,
Fellow, Medieval Institute,
University of Notre Dame.
Screenshot 2022-07-23 10.27.20 AM.png (image/png, 50.1 KB) - not displayed
rubbish.md (application/octet-stream, 241 B) - not displayed