'How to convert using PANDOC a markdown file to rtf

I am new to pandoc and I am strugling to get a file convesion done. I want to convert a markdown file to a rtf file.

pandoc -f markdown -f rtf 1.md -o file.rtf

I am using the following command, however it just does not do the work correctly, as it is not beind correctly displayed when opening the file...

enter image description here

I also tried to replace the second flag with -s, however it also did not work:

pandoc -f markdown -s rtf 1.md -o file.rtf

I get the following notification, when I try to do that:

pandoc: rtf: openBinaryFile: does not exist (No such file or directory)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source