#3917·marktext

Under File Menu, add convert menu that calls Pandoc to convert Markdown to other formats

Author: TurboCoolerCreated Jan 23, 2025Updated Sep 17, 2026
Labels:unicorn: feature request

Describe your feature request

I would like a new feature to add a Convert sub-menu of the main File Menu. The Convert menu would be a flyout menu that is configured from the Preferences --> Markdown dialog that will contain a new Conversions section. Under conversions, ask for the path to the pandoc executable. Also add a way for a user to specify the name of the flyout menu, for example, "Markdown to RTF". Ask the user for the command line switches that can perform the action. For example, -f markdown -t rtf {file} -s -o {file}.rtf. When properly configured the user will see File --> Convert... --> Markdown to RTF. Choosing this menu will convert the currently open and saved file to RTF and place the output file into the same folder as the original markdown file. If the current file is not saved, a dialog will be displayed to the user that reads "The conversion can only be performed on the currently opened file that has been saved. would you like to save this file so you can perform the conversion requested" Okay and Cancel buttons will be options the user may choose. Okay button will save the current file and then perform the conversion, and the Cancel button will cancel the operation.

What problem does this feature solve? [optional]

Often, I need copy and paste or move data within markdown files to Microsoft Word or other word processors. Microsoft Word and other word processors do not support markdown as a native format from the clipboard nor will they import markdown files. While HTML is an option that is available and that Word does support, the pasted information is poorly formatted and often has double spaced lines which requires time to fix correctly. Third party commercial tools exist that can do this, but if integrated into this editor it is a simple task of choosing the menu. Since others may need to do this for other reasons, using Pandoc is a flexible way to allow other conversions with minimum effort.

Additional context [optional]

Making this externalized allows this editor to use other external conversion tools with minimal effort